Hi All

If 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

<typeDescription>

<name>org.apache.ctakes.drugner.type.FractionStrengthAnnotation</name>

<description>The fraction portion of dosages strength determination for the
Drug NER profile.</description>

<supertypeName>uima.tcas.Annotation</supertypeName>

</typeDescription>

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.

Any thoughts?

Peter

Reply via email to