You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Joern Kottmann (JIRA)" <ji...@apache.org> on 2014/03/12 15:43:43 UTC

[jira] [Resolved] (OPENNLP-605) Change GeneratorFactory class to allow registering custom feature generators

     [ https://issues.apache.org/jira/browse/OPENNLP-605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joern Kottmann resolved OPENNLP-605.
------------------------------------

    Resolution: Fixed

More testing on this issue is needed before it can be closed.

> 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
>             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.2#6252)