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

TokenNameFinderTrainer CLI not loading resources

    XMLWordPrintableJSON

Details

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

    Description

      Passing an XML featuregen descriptor to the CLI TokenNameFinderTrainer with a line such as
      <w2vwordcluster dict="word2vec-test.txt" />

      and with the -resource parameter properly set, the loadResources() method does not get the right serializer to create the resource (line 130 of TokenNameFinderTrainerTool class). It looks in the ArtifactSerializers map created at the beginning of the method but does not find a value for the key (which is the file extension of the lexicon?).

      Proposed solution: get the appropriate serializer from the element class (e.g. w2vwordcluster).

      Any comments?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: