You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Suneel Marthi (Jira)" <ji...@apache.org> on 2020/01/25 20:11:00 UTC

[jira] [Closed] (OPENNLP-1219) change private instance variable featureGenerators to protected in DefaultNameContextGenerator

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

Suneel Marthi closed OPENNLP-1219.
----------------------------------

> change private instance variable featureGenerators to protected in DefaultNameContextGenerator
> ----------------------------------------------------------------------------------------------
>
>                 Key: OPENNLP-1219
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-1219
>             Project: OpenNLP
>          Issue Type: Improvement
>    Affects Versions: 1.9.0
>            Reporter: Koji Sekiguchi
>            Assignee: Koji Sekiguchi
>            Priority: Minor
>             Fix For: 1.9.1
>
>
> TokenNameFinderTrainer allows users to customize TokenNameFinderFactory via -factory option. As I want to override DefaultNameContextGenerator.getContext(), I made the sub-class of TokenNameFinderFactory and created an instance of the sub-class of DefaultNameContextGenerator in the constructor of my TokenNameFinderFactory. However, I couldn't implement getContext() method of my DefaultNameContextGenerator because I couldn't access private member featureGenerators.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)