Phillip Rhodes created OPENNLP-1347:
---------------------------------------

             Summary: The Training API code for Tokenizer is outdated in manual
                 Key: OPENNLP-1347
                 URL: https://issues.apache.org/jira/browse/OPENNLP-1347
             Project: OpenNLP
          Issue Type: Bug
          Components: Documentation
    Affects Versions: 1.9.4
            Reporter: Phillip Rhodes


The code sample in the manual at <> in the section on Tokenizer training has is 
incorrect. The current code sample is:

 
{code:java}
try {
  model = TokenizerME.train("en", sampleStream, true, 
TrainingParameters.defaultParams());
} {code}
But TokenizerME.train() now has a new signature which requires a 
TokenizerFactory. The above does not compile with the 1.9.4 library version.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to