Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.9.4
Description
The Training API example code at https://opennlp.apache.org/docs/1.9.4/manual/opennlp.html in the section on Sentence Detection training is incorrect. The current code sample is:
ObjectStream<String> lineStream = new PlainTextByLineStream(new FileInputStream("en-sent.train"), StandardCharsets.UTF_8);
But PlainTextByLineStream no longer takes an InputStream as the first argument to its constructor. It now requires an InputStreamFactory.
NOTE: this same pattern reappears in multiple places in the current manual. See also, OPENNLP-1319
Attachments
Attachments
Issue Links
- is cloned by
-
OPENNLP-1346 The Training API code for Tokenization is outdated in manual (1/2)
- Resolved
- is fixed by
-
OPENNLP-1362 Update document to be compatible with latest version PlainTextByLineStream class
- Closed