[
https://issues.apache.org/jira/browse/OPENNLP-1347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Phillip Rhodes updated OPENNLP-1347:
------------------------------------
Summary: The Training API code for Tokenization is outdated in manual (2/2)
(was: The Training API code for Tokenizer is outdated in manual)
> 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
> Priority: Minor
> Labels: documentation, easy-fix
>
> 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)