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:45:41 UTC

[jira] [Updated] (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 ]

WB updated OPENNLP-605:
-----------------------

    Description: 
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/19388998?noredirect=1#19388998

  was:
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


> 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
>   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/19388998?noredirect=1#19388998



--
This message was sent by Atlassian JIRA
(v6.1#6144)