-
Notifications
You must be signed in to change notification settings - Fork 58
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
Exception: ... type Annotation "was not declared in the XML type descriptor." #470
Comments
Most likely your code is using a JCas cover class before it ever creates a (J)CAS object. You can probably work around the issue by creating some dummy CAS object at the start of your application. I had to do this in a ClearTK unit test as well. The underlying problem is tricky and I have no solution for it yet: apache/uima-uimaj#234 |
Hi Richard, thank you for the guidance. I am a little confused because about 20 annotators run before the cleartk -using ae without any problem. I will look for something that might be related to the referenced bugs. Sean
|
@seanfinan see e4ab3cc#diff-af408d648da8b83b12b599b6697d0625012924e4c420489f501269471065daa6R26-R56 There I had to add this workaround because the test was failing. |
I added CasCreationUtils.createCas(); to the constructor of my implementation of JCasCollectionReader_ImplBase and it worked! Thank you! |
Hi all, I am trying to get out a ctakes release that has updated dependencies, mostly for vulnerability remediation but also to bring the project into this decade. Everything was going swimmingly until I updated cleartk to version 3.0.0.
Describe the bug
CleartkExtractor.extractBetween(..) seems to generate a
CASRuntimeException JCas type "org.apache.uima.jcas.tcas.Annotation" used in Java code, but was not declared in the XML type descriptor.
...
at org.cleartk.ml.feature.extractor.CleartkExtractor.extractBetween(CleartkExtractor.java:117)
To Reproduce This involves upgrades to the ctakes 6.0.0-SNAPSHOT (main branch).
Expected behavior
Expected behavior is working execution of cleartk such as in ctakes 5.1.0, running java 8 and uima 2.4.0 and cleartk 2.0.0
Please complete the following information:
Additional context
The ctakes code:
where arg1, arg2 are declared org.apache.uima.jcas.tcas.Annotation
A more complete stack trace is:
Thanks for any help that you can provide.
The text was updated successfully, but these errors were encountered: