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

Fix Dictionary support to GeneratorFactory::extractArtifactSerializerMappings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.8.1
    • Name Finder
    • None

    Description

      GeneratorFactory.extractArtifactSerializerMappings does not support Dictionaries.

      E.g.
      feature.xml
      <generators>
      <cache>
      <generators>
      ...
      <dictionary dict="locations.dict"/>
      </generators>
      </cache>
      </generators>

      running opennlp TokenNameFinderTrainer.brat
      -resources /my/resources
      -featuregen feature.xml

      results in:
      FeatureGeneratorCreationError: opennlp.tools.util.InvalidFormatException: No dictionary resource for key: locations.dict
      Even though the file is present in the resources folder.

      Attachments

        Issue Links

          Activity

            People

              thygesen Peter Thygesen
              thygesen Peter Thygesen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified