ClearTK advanced Document Classification example gives org.apache.uima.analysis_engine.AnalysisEngineProcessException

69 views
Skip to first unread message

dreamsco...@gmail.com

unread,
Mar 8, 2015, 4:26:28 PM3/8/15
to cleart...@googlegroups.com
Hi,


I am using ClearTK documentClssification advanced example . i am using it as standalone java program executing using command prompt. When i run the program TrainModel.java it gives the following exception

org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl callAnalysisComponentProcess(406)
SEVERE
: Exception occurred
org
.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator processing failed.at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.cal
lAnalysisComponentProcess
(PrimitiveAnalysisEngine_impl.java:390)
        at org
.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.pro
cessAndOutputNewCASes
(PrimitiveAnalysisEngine_impl.java:298)
        at org
.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterato
r
.processUntilNextOutputCas(ASB_impl.java:568)
        at org
.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterato
r
.<init>(ASB_impl.java:410)
        at org
.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.ja
va
:343)
        at org
.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.pro
cessAndOutputNewCASes
(AggregateAnalysisEngine_impl.java:265)
        at org
.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterato
r
.processUntilNextOutputCas(ASB_impl.java:568)
        at org
.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterato
r
.<init>(ASB_impl.java:410)
        at org
.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.ja
va
:343)
        at org
.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.pro
cessAndOutputNewCASes
(AggregateAnalysisEngine_impl.java:265)
        at org
.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(A
nalysisEngineImplBase
.java:267)
        at org
.apache.uima.fit.pipeline.SimplePipeline.runPipeline(SimplePipelin
e
.java:83)
        at
DocumentClassificationEvaluation.train(DocumentClassificationEvaluati
on
.java:159)
        at
TrainModel.main(TrainModel.java:44)
Caused by: org.apache.uima.cas.CASRuntimeException: JCas type "org.cleartk.examp
les.type.UsenetDocument"
used in Java code,  but was not declared in the XML typ
e descriptor
.
        at org
.apache.uima.jcas.impl.JCasImpl.getType(JCasImpl.java:412)
        at org
.apache.uima.jcas.cas.TOP.<init>(TOP.java:92)
        at org
.apache.uima.jcas.cas.AnnotationBase.<init>(AnnotationBase.java:53
)
        at org
.apache.uima.jcas.tcas.Annotation.<init>(Annotation.java:54)
        at org
.cleartk.examples.type.UsenetDocument.<init>(UsenetDocument.java:5
1)
        at
GoldDocumentCategoryAnnotator.process(GoldDocumentCategoryAnnotator.j
ava
:26)
        at org
.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCa
sAnnotator_ImplBase
.java:48)
        at org
.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.cal
lAnalysisComponentProcess
(PrimitiveAnalysisEngine_impl.java:374)
       
... 13 more

Sorry for posting entire error message. but i need help urgently...

Thanks in Advance
Dreams

Steven Bethard

unread,
Mar 10, 2015, 9:32:38 PM3/10/15
to cleart...@googlegroups.com
I'm not sure what you mean by "using it as standalone java program",
but this error:

Caused by: org.apache.uima.cas.CASRuntimeException: JCas type "org.cleartk.examp
les.type.UsenetDocument" used in Java code, but was not declared in the XML typ
e descriptor.

typically means that you haven't included the type system XML files
(e.g. cleartk-examples/src/main/resources/org/cleartk/examples/type/UsenetDocument.xml)
on your classpath.

Steve
> --
> You received this message because you are subscribed to the Google Groups
> "cleartk-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cleartk-user...@googlegroups.com.
> To post to this group, send email to cleart...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cleartk-users.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages