Package opennlp.tools.cmdline.sentdetect
Class SentenceDetectorTool
- java.lang.Object
-
- opennlp.tools.cmdline.CmdLineTool
-
- opennlp.tools.cmdline.BasicCmdLineTool
-
- opennlp.tools.cmdline.sentdetect.SentenceDetectorTool
-
public final class SentenceDetectorTool extends opennlp.tools.cmdline.BasicCmdLineToolA sentence detector which uses a maxent model to predict the sentences.
-
-
Constructor Summary
Constructors Constructor Description SentenceDetectorTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHelp()Retrieves a description on how to use the tool.StringgetShortDescription()Retrieves a short description of what the tool does.voidrun(String[] args)Perform sentence detection the input stream.
-
-
-
Method Detail
-
getShortDescription
public String getShortDescription()
Description copied from class:opennlp.tools.cmdline.CmdLineToolRetrieves a short description of what the tool does.- Overrides:
getShortDescriptionin classopennlp.tools.cmdline.CmdLineTool- Returns:
- a short description of what the tool does
-
getHelp
public String getHelp()
Description copied from class:opennlp.tools.cmdline.CmdLineToolRetrieves a description on how to use the tool.- Specified by:
getHelpin classopennlp.tools.cmdline.CmdLineTool- Returns:
- a description on how to use the tool
-
run
public void run(String[] args)
Perform sentence detection the input stream. A newline will be treated as a paragraph boundary.- Specified by:
runin classopennlp.tools.cmdline.BasicCmdLineTool- Parameters:
args- arguments
-
-