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

Vinh Khuc updated OPENNLP-670:
------------------------------

    Attachment: TokenNameFinderFactory.java.patch

The bug occurred because seqCodec is not initialized in the default constructor 
of TokenNameFinderFactory. Attached is a proposed fix.

> Failed to write model after training TokenNameFinder
> ----------------------------------------------------
>
>                 Key: OPENNLP-670
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-670
>             Project: OpenNLP
>          Issue Type: Bug
>          Components: Name Finder
>    Affects Versions: 1.6.0
>         Environment: Windows 7, JRE 1.7.0_25
>            Reporter: Vinh Khuc
>         Attachments: Model-Writing-Failed.log, 
> TokenNameFinderFactory.java.patch
>
>
> For OpenNLP's revision 1582319, TokenNameFinder failed to write model to file 
> after training using MaxEnt with the following command (assuming the current 
> directory is trunk\opennlp-tools)
> bin\opennlp TokenNameFinderTrainer -lang nl -data nl-per.train -params 
> lang\ml\MaxentTrainerParams.txt -model maxent-test.bin



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to