Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JCas Type ... used in Java code, but was not declared in the XML type descriptor #7

Open
sschoop opened this issue Apr 23, 2017 · 0 comments

Comments

@sschoop
Copy link

sschoop commented Apr 23, 2017

I could build the code from the master branch, but everytime I try to tag some text, I get the following exception:

Apr 23, 2017 6:20:54 PM org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl callAnalysisComponentProcess(417) SCHWERWIEGEND: Exception occurred org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator processing failed. at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:401) at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:309) at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:267) at org.apache.uima.fit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:309) at org.apache.uima.fit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:195) at de.tu.darmstadt.lt.ner.preprocessing.GermaNERMain.classifyTestFile(GermaNERMain.java:120) at de.tu.darmstadt.lt.ner.preprocessing.GermaNERMain.main(GermaNERMain.java:304) Caused by: org.apache.uima.cas.CASRuntimeException: JCas type "de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Token" used in Java code, but was not declared in the XML type descriptor. at org.apache.uima.jcas.impl.JCasImpl.getType(JCasImpl.java:414) at org.apache.uima.jcas.cas.TOP.<init>(TOP.java:92) at org.apache.uima.jcas.cas.AnnotationBase.<init>(AnnotationBase.java:66) at org.apache.uima.jcas.tcas.Annotation.<init>(Annotation.java:54) at de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Token.<init>(Token.java:65) at de.tu.darmstadt.lt.ner.reader.NERReader.process(NERReader.java:152) 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:385) ... 6 more

What i'm doing wrong?
I already read, that you have to declare the types in some xml and define it in here META-INF\org.apache.uima.fit\text.txt. That's indeed done, but in the directory "desc\type" are only the following files:
GoldNamedEntity.xml
SimilarWord1.xml
SimilarWord2.xml

But there is no type of "de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Token" defined in the directory. Is that the problem? If yes, how can I fix that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant