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

NameFinder trainer creates model always with default feature generator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.6.0
    • Name Finder
    • None

    Description

      While adding new features to name finder (e.g., OPENNLP-714) it was noticed that the NameFinder trainer performance degraded after adding more features than those contained in the default generator.

      It turned out that at the moment of creating the TokenNameFinderModel, the feature generator parameter was not the one used for the training, but a default one (null). As a result, the init() method in TokenNameFinderModel always created the model with the default feature generator.

      Solution: add a getter in the TokenNameFinderFactory class to have access to the featureGenerator created for each implementation of the factory, and then use that getter as a parameter when creating the models after training. It has been implemented and tested and it works.

      If you find this solution ok, I will push the commit.

      Attachments

        Activity

          People

            ragerri Rodrigo Agerri
            ragerri Rodrigo Agerri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: