Hello Adei,

> Nov 20, 2011 4:34:39 PM
>> Caused by: org.apache.uima.cas.CASRuntimeException: JCas type
>> "org.uimafit.type.RoomNumber" used in Java code,  but was not declared in
>> the XML type descriptor.

You seem not to initialize the type system properly. This line should load the 
type system from the classpath (e.g. from src/main/resources).

        TypeSystemDescription tsd = 
TypeSystemDescriptionFactory.createTypeSystemDescription("org.uimafit.type.RoomNumber");

With uimaFIT you don't need the RoomNumbersAE.xml. Most people using uimaFIT 
would generate that using the AnalysisEngineFactory. The second parameter you 
can pass to the createPrimitive() method is where you plug your type system in.

        AnalysisEngine analysisEngine = 
AnalysisEngineDescription.createPrimitive(RoomNumberAnnotator.class, tsd);

If you use uimaFIT, looking at your XML files does not give me a base to advice 
you. Instead, the Java code that you use to run your
pipeline would be more helpful.

You may find some runnable examples adapted from the official UIMA examples for 
uimaFIT in the "uimafit-examples" subproject, e.g. here

http://code.google.com/p/uimafit/source/browse/trunk/uimaFIT-examples/src/main/java/org/uimafit/examples/tutorial/ex1/RoomNumberAnnotatorPipeline.java
http://code.google.com/p/uimafit/source/browse/trunk/uimaFIT-examples/src/main/java/org/uimafit/examples/tutorial/ex2/RoomNumberAnnotatorPipeline.java

Best,

-- Richard

-- 
------------------------------------------------------------------- 
Richard Eckart de Castilho
Technical Lead
Ubiquitous Knowledge Processing Lab 
FB 20 Computer Science Department      
Technische Universität Darmstadt 
Hochschulstr. 10, D-64289 Darmstadt, Germany 
phone [+49] (0)6151 16-7477, fax -5455, room S2/02/B117
[email protected] 
www.ukp.tu-darmstadt.de 
Web Research at TU Darmstadt (WeRC) www.werc.tu-darmstadt.de
------------------------------------------------------------------- 




Reply via email to