uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marshall Schor <...@schor.com>
Subject Re: Using configuration parameter within regex validator
Date Fri, 18 Feb 2011 18:16:18 GMT


On 2/16/2011 9:34 AM, Anuj Kumar wrote:
> Hi,
>
> I am trying to use the Validation for the Regex annotator. For validation I
> need to use a threshold value and I want it to be configurable. I can
> declare that as a configuration parameter, but is there a way to access that
> configuration parameter within the regex validator?
>
> If not then I think the only solution is to write my own Annotator and then
> use the initialize method to access the configuration from the UIMA context.
> What would you suggest?

This seems like a good approach - you could subclass the
RegularExpressionAnnotator, and add the bits you need.

-Marshall
> Regards,
> Anuj
>

Mime
View raw message