On 07.11.2013, at 02:37, digital paula <[email protected]> wrote:
> Richard,
>
> I had no idea that the attachments weren't going through.....why not? They
> do for other apache user forums.
Well, I do not know, but every time you said there was an attachment (twice now
if I remember correctly), I didn't get any.
> Thank you so much for your prompt response and help, all I had to do was add
> the text 'computing' without any hyphens or quotes. Sorry for wasting your
> time on such a trivial case, I tried with the quotes around it "computing"
> and didn't think to try it without. I've attached and highlighted the line
> for other users to see what was done to resolve the issue.
>
> <setFeature name="getTextCapture" type="String"
> normalization="Trim">$0</setFeature>
> <setFeature name="setTextCapture" type="String">computing</setFeature>
There seems to be something odd here. Normally, a feature would be called
"textCapture" and the JCas class for the annotation that contains the feature
would be generated with two methods "getTextCapture" and "setTextCapture".
It appears that you have two features, one called "getTextCapture" and another
"setTextCapture". When you generate JCas classes for these in order to access
the annotations from Java source code, you would end up with
"getGetTextCapture"/"setGetTextCapture" and
"getSetTextCapture"/"setSetTextCapture". If you really intend to have two
features, you should consider choosing different names, e.g. "capture" and
"category" ("type" is a "reserved" feature name).
I didn't check the documentation of the regexannotator in detail to see if it
does something smart here that I don't know, but I doubt it.
-- Richard