[
https://issues.apache.org/jira/browse/OPENNLP-605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joern Kottmann closed OPENNLP-605.
----------------------------------
> Change GeneratorFactory class to allow registering custom feature generators
> ----------------------------------------------------------------------------
>
> Key: OPENNLP-605
> URL: https://issues.apache.org/jira/browse/OPENNLP-605
> Project: OpenNLP
> Issue Type: Improvement
> Components: Name Finder
> Affects Versions: tools-1.5.3
> Reporter: WB
> Assignee: Joern Kottmann
> Fix For: 1.6.0
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> I am trying to setup the OpenNLP NameFinder in a project with an XML feature
> generator descriptor and some non-standard features. The XML descriptor has
> support for custom feature generators:
> <generators>
> <cache>
> <generators>
> ...
> <custom class="com.example.MyFeatureGenerator"/>
> </cache>
> </generators>
> However, it is not possible to pass parameters to the custom feature
> generator, and registering new feature generators is currently not possible
> due to access restrictions in the
> opennlp.tools.util.featuregen.GeneratorFactory class. Lifting some access
> restrictions (private to public) would solve the issue.
> See also:
> http://stackoverflow.com/questions/19375053/using-custom-feature-generators-with-parameters-in-opennlp
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)