You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "WB (JIRA)" <ji...@apache.org> on 2013/10/16 09:43:44 UTC
[jira] [Created] (OPENNLP-605) Change GeneratorFactory class to
allow registering custom feature generators
WB created OPENNLP-605:
--------------------------
Summary: 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
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.
See also: http://stackoverflow.com/questions/19375053/using-custom-feature-generators-with-parameters-in-opennlp/19388998?noredirect=1#19388998
--
This message was sent by Atlassian JIRA
(v6.1#6144)