[ https://issues.apache.org/jira/browse/OPENNLP-1347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Wiesner resolved OPENNLP-1347. ------------------------------------- Fix Version/s: 2.0.0 Assignee: Martin Wiesner Resolution: Fixed This is fixed with commit 6c439ae9 in the context of OPENNLP-1319. Since the change, the documentation is consistent with the API again. > The Training API code for Tokenization is outdated in manual (2/2) > ------------------------------------------------------------------ > > 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 > Assignee: Martin Wiesner > Priority: Minor > Labels: documentation, easy-fix > Fix For: 2.0.0 > > > 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.10#820010)