Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.1.0
-
Windows 7, 64 bit
Description
When I run the EvaluationOfEventSpan.java of ctakes-temporal, the DocumentID in the gold standard training document (knowtator format) cannot be fetched. Error messages:
Exception in thread "main" org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator processing failed.
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:391)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:296)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:567)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.<init>(ASB_impl.java:409)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:342)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:267)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:567)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.<init>(ASB_impl.java:409)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:342)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:267)
at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:267)
at org.uimafit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:223)
at org.uimafit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:143)
at org.apache.ctakes.temporal.eval.EvaluationOfAnnotationSpans_ImplBase.train(EvaluationOfAnnotationSpans_ImplBase.java:88)
at org.cleartk.eval.Evaluation_ImplBase.crossValidation(Evaluation_ImplBase.java:106)
at org.apache.ctakes.temporal.eval.Evaluation_ImplBase.crossValidation(Evaluation_ImplBase.java:111)
at org.apache.ctakes.temporal.eval.EvaluationOfEventSpans.main(EvaluationOfEventSpans.java:52)
Caused by: java.lang.IllegalArgumentException: CAS does not contain any [org.apache.ctakes.typesystem.type.structured.DocumentID]
at org.uimafit.util.CasUtil.selectSingle(CasUtil.java:764)
at org.uimafit.util.JCasUtil.selectSingle(JCasUtil.java:515)
at org.apache.ctakes.core.ae.SHARPKnowtatorXMLReader.getJCasURIString(SHARPKnowtatorXMLReader.java:76)
at org.apache.ctakes.core.ae.SHARPKnowtatorXMLReader.process(SHARPKnowtatorXMLReader.java:102)
at org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:375)
... 16 more