Uploaded image for project: 'OpenNLP'
  1. OpenNLP
  2. OPENNLP-1219

change private instance variable featureGenerators to protected in DefaultNameContextGenerator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.0
    • 1.9.1
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              koji Koji Sekiguchi
              koji Koji Sekiguchi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: