Class SentenceDetectorTool
java.lang.Object
opennlp.tools.cmdline.CmdLineTool
opennlp.tools.cmdline.BasicCmdLineTool
opennlp.tools.cmdline.sentdetect.SentenceDetectorTool
A sentence detector which uses a maxent model to predict the sentences.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class CmdLineTool
getBasicHelp, getBasicHelp, getName, hasParams, validateAndParseParams
-
Field Details
-
logger
private static final org.slf4j.Logger logger
-
-
Constructor Details
-
SentenceDetectorTool
public SentenceDetectorTool()
-
-
Method Details
-
getShortDescription
- Overrides:
getShortDescriptionin classCmdLineTool- Returns:
- Retrieves a short description of what the tool does
-
getHelp
- Specified by:
getHelpin classCmdLineTool- Returns:
- Retrieves a description on how to use the tool
-
run
Perform sentence detection on a stream of sentences.A newline will be treated as a paragraph boundary.
- Specified by:
runin classBasicCmdLineTool- Parameters:
args- arguments
-