You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ctakes.apache.org by "Johnsd11 (via GitHub)" <gi...@apache.org> on 2025/03/17 19:04:12 UTC
[I] [Question]: About DrugNerAnnotator [ctakes]
Johnsd11 opened a new issue, #27:
URL: https://github.com/apache/ctakes/issues/27
### What’s your question?
Has anyone has tried using the Drugner in 5.1.0 have they run into this
error when its process() method is run.
message: JCas type
"org.apache.ctakes.drugner.type.FractionStrengthAnnotation" used in
Java code, but was not declared in the XML type descriptor
The thing is that this attribute is declared in the annotator's Xml
Type Description, and because FractionStrengthAnnotation is also the
first one that the code attempts to access, I'm assuming that none of
the other attributes are found either.
attribute defs will actually be found
org.apache.ctakes.drugner.type.FractionStrengthAnnotation
The fraction portion of dosages strength determination for the
Drug NER profile.
uima.tcas.Annotation
etc
I've looked for a rogue
org.apache.ctakes.drugner.types.TypeSystem.xml elswhere in my
classpath and there isn't one. But there is an issue that some bits
of the configuration & src of this annotator refer to the package as
org.apache.ctakes.drugner. and others as
org.apache.ctakes.drug.ner. The use of both "stringifyied package
names" and actual packages in the FIT architecture always confuses me.
This discrepancy is something that crept into certain annotators whose
packages changed in 5.0.x. At that time I fixed all of these so they
would compile, but it seems there are still issues.
### Context
_No response_
### What category does this question fall under?
None
### Contact Details
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ctakes.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question]: About DrugNerAnnotator [ctakes]
Posted by "Johnsd11 (via GitHub)" <gi...@apache.org>.
Johnsd11 commented on issue #27:
URL: https://github.com/apache/ctakes/issues/27#issuecomment-2730600971
Turns out that this problem was indeed due to the fact that package names
had changed from v4.x.x to v5.x.x from ...drugner... to ..drug.ner..
But across the sources and typesystem files it had not been completely done
and had been left in a halfway state. By reverting the package spec of
resources in the drugner jar
from resources/org/apache/drug/ner/**
to *resources/org/apache/drugner/<*typesystem stuff>
It started working again
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ctakes.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question]: About DrugNerAnnotator [ctakes]
Posted by "Johnsd11 (via GitHub)" <gi...@apache.org>.
Johnsd11 closed issue #27: [Question]: About DrugNerAnnotator
URL: https://github.com/apache/ctakes/issues/27
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ctakes.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question]: About DrugNerAnnotator [ctakes]
Posted by "Johnsd11 (via GitHub)" <gi...@apache.org>.
Johnsd11 commented on issue #27:
URL: https://github.com/apache/ctakes/issues/27#issuecomment-2730600626
This looks like the same problem encountered here:
https://github.com/apache/ctakes/issues/23
It was fixed for -standard- ctakes workflows in 6.0.0, but if you don't use the PiperFileRunner or have a custom reader then you may still see the problem.
The root cause is still an open issue in uima, so if anybody out there has a general solution please share.
https://github.com/apache/uima-uimaj/issues/234
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ctakes.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question]: About DrugNerAnnotator [ctakes]
Posted by "Johnsd11 (via GitHub)" <gi...@apache.org>.
Johnsd11 closed issue #27: [Question]: About DrugNerAnnotator
URL: https://github.com/apache/ctakes/issues/27
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ctakes.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org