You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Jim Piliouras (Closed) (JIRA)" <ji...@apache.org> on 2012/03/13 16:46:40 UTC

[jira] [Closed] (OPENNLP-463) Docs incosistent with latest code

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

Jim Piliouras closed OPENNLP-463.
---------------------------------


The empty Map does the trick...Issue resolved!
                
> Docs incosistent with latest code
> ---------------------------------
>
>                 Key: OPENNLP-463
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-463
>             Project: OpenNLP
>          Issue Type: Improvement
>          Components: Name Finder
>    Affects Versions: tools-1.5.2-incubating, tools-1.5.3
>         Environment: Ubuntu 11.10 x64  Java 1.7  
>            Reporter: Jim Piliouras
>            Assignee: William Colen
>            Priority: Minor
>             Fix For: tools-1.5.3
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The docs state that one can pass null resources to the TokenNameFinderCrossValidator but that is not the case...At the very least one has to pass an empty Map rather than null, otherwise there will be a NPE right after the first 100 iterations of training finish! Passing an empty map does the trick...Thanks William! 
> At the very least you can add a null-check and create an empty map accordingly rather than letting the user do it...  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira