You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Rodrigo Agerri (JIRA)" <ji...@apache.org> on 2014/10/22 19:22:34 UTC

[jira] [Commented] (OPENNLP-725) TokenNameFinderTrainer CLI not loading resources

    [ https://issues.apache.org/jira/browse/OPENNLP-725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14180203#comment-14180203 ] 

Rodrigo Agerri commented on OPENNLP-725:
----------------------------------------

In relation to the above, it looks like if the resource is not of the form "test.resource" with "resource" being the key of the resources map, then the BaseModel does not load that resource from the model (line 317 of BaseModel class). 

Is that the case?

> TokenNameFinderTrainer CLI not loading resources
> ------------------------------------------------
>
>                 Key: OPENNLP-725
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-725
>             Project: OpenNLP
>          Issue Type: Bug
>          Components: Name Finder
>    Affects Versions: 1.6.0
>            Reporter: Rodrigo Agerri
>            Assignee: Rodrigo Agerri
>             Fix For: 1.6.0
>
>
> 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?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)