You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Peter Thygesen (JIRA)" <ji...@apache.org> on 2017/05/29 11:23:04 UTC

[jira] [Updated] (OPENNLP-1081) Fix Dictionary support to GeneratorFactory::extractArtifactSerializerMappings

     [ https://issues.apache.org/jira/browse/OPENNLP-1081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Thygesen updated OPENNLP-1081:
------------------------------------
    Summary: Fix Dictionary support to GeneratorFactory::extractArtifactSerializerMappings  (was: Add Dictionary support to GeneratorFactory::extractArtifactSerializerMappings)

> Fix Dictionary support to GeneratorFactory::extractArtifactSerializerMappings
> -----------------------------------------------------------------------------
>
>                 Key: OPENNLP-1081
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-1081
>             Project: OpenNLP
>          Issue Type: Bug
>          Components: Name Finder
>    Affects Versions: 1.8.0
>            Reporter: Peter Thygesen
>            Assignee: Peter Thygesen
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)