Hi guys,
i have been working on How to develop uima as web
application.i have neen posting this as my subjecy from past one
week.tillnow i have not reached that
point.i don't know where i went wrong,i need some one to reply to my topic.
i have to thank adam for giving replies till now.
my problem is i am getting an out put but it is
showing whole documentation,here i want only annotation.i have used
FSIndexRepositary for getting it.i have failed here.i have writen code like
this
FSIndex fsIndex = aCAS.getAnnotationIndex();
aCAS.getJCas().getJFSIndexRepository().getIndex("TestType", TestType.*type*
);
//JCas jc=aCAS.getJCas();
//jc.getJFSIndexRepository().getIndex("allEvents", TestType.type);
Iterator<DocumentAnnotation> itr = fsIndex.iterator();
*while*(itr.hasNext())
{
DocumentAnnotation annot = (DocumentAnnotation)itr.next();
out.println("Test UIMA Servlet Begin::"+annot.getBegin()+"<br>");
out.println("Test UIMA Servlet End::"+annot.getEnd()+"<br>");
out.println("Test UIMA Servlet Content::"+annot.getCoveredText()+"<br>");
out.println("Test UIMA Servlet End::"+annot.getType()+"<br>");
}
so can any help from here.i want to disply only annotation when i use
servlet urlpattern in webbrowser.
thank u
vijay