I'm not sure what you are want to have.

Your result shows all the annotations that are available in the CAS. If you want to have only annotations of type com.iton.uima.TestTyp you have to filter the annotations before you return them.

Type testType = aCAS.getTypeSystem().getType("com.iton.uima.TestTyp");
FSIterator iterator = aCAS.getAnnotationIndex(testType).iterator();

With that code, your iterator only contains annotations of type 
com.iton.uima.TestTyp.

-- Michael

vijay vijay wrote:
yes michael,
                       u are correct i have modifeid that xml name it is
working

                      here i have one more douat i have been working on how
to develop uima annotator as webapplication?in this process i have reached
where i am able to get the output when i call the servlet   in IE
webbrowser,but iam getting out put like this

uima.tcas.DocumentAnnotation "HI this Michael,who works on UIMA and this
vijay troubles him ... " sofa = uima.cas.Sofa sofaNum = 1 sofaID =
"_InitialView" mimeType = "text" sofaArray = null sofaString = "HI this
Michael,who works on UIMA and this vijay troubles him ..." sofaURI = null
begin = 0 end = 92 language = "x-unspecified"
com.iton.uima.TestType"Michael" sofa =
uima.cas.Sofa sofaNum = 1 sofaID = "_InitialView" mimeType = "text"
sofaArray = null sofaString = "HI this Michael,who works on UIMA and this
vijay troubles him ..." sofaURI = null begin = 8 end = 15 TestType =
"Michael" com.iton.uima.TestType "vijay" sofa = uima.cas.Sofa sofaNum = 1
sofaID = "_InitialView" mimeType = "text" sofaArray = null sofaString = "HI
this Michael,who works on UIMA and this vijay troubles him ..." sofaURI =
null begin = 43 end = 48 TestType = "vijay" com.iton.uima.TestType "dogs"
sofa = uima.cas.Sofa sofaNum = 1 sofaID = "_InitialView" mimeType = "text"
sofaArray = null sofaString = "HI this Michael,who works on UIMA and this
vijay troubles him ..." sofaURI = null begin = 75 end = 79 TestType = "dogs"


insted of getting  only annotattors i am getting whole thing.
here my question is why i am getting an out put like this.

vijay


On 9/21/07, Michael Baessler <[EMAIL PROTECTED]> wrote:
Either your annotator class is misspelled

"com.iton.uima.config.ConfigParam"

or it is not available in the Tomcat classpath.

The annotator class is specified at the beginning of the descriptor:

file:/C:/Program Files/Apache Software Foundation/Tomcat 6.0
/descriptor/aeDescriptor.xml


vijay vijay wrote:
com.ibm.uima.resource.ResourceInitializationException: Annotator class "
com.iton.uima.config.ConfigParam" was not found. (Descriptor:
file:/C:/Program Files/Apache Software Foundation/Tomcat 6.0
/descriptor/aeDescriptor.xml)
 at

com.ibm.uima.reference_impl.analysis_engine.PrimitiveAnalysisEngine_impl.initializeAnalysisComponent
(Unknown
Source)
 at

com.ibm.uima.reference_impl.analysis_engine.PrimitiveAnalysisEngine_impl.initialize
(Unknown
Source)
 at
com.ibm.uima.reference_impl.AnalysisEngineFactory_impl.produceResource
(Unknown
Source)
 at

com.ibm.uima.reference_impl.CompositeResourceFactory_impl.produceResource
(Unknown
Source)
 at com.ibm.uima.UIMAFramework.produceResource(Unknown Source)
 at com.ibm.uima.UIMAFramework.produceAnalysisEngine(Unknown Source)
 at com.iton.uima.Test.doGet(Test.java:63)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175)
 at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java
:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java
:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java
:263)
 at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java
:844)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:584)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java
:447)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
com.iton.uima.config.ConfigParam
 at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1358)
 at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1204)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 ... 21 more




Reply via email to