You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Koji Sekiguchi (JIRA)" <ji...@apache.org> on 2018/09/19 07:54:00 UTC
[jira] [Created] (OPENNLP-1219) change instance variable
featureGenerators to protected in DefaultNameContextGenerator
Koji Sekiguchi created OPENNLP-1219:
---------------------------------------
Summary: change 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
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
(v7.6.3#76005)