opennlp.tools.cmdline.sentdetect
Class SentenceDetectorTool

java.lang.Object
  extended by opennlp.tools.cmdline.sentdetect.SentenceDetectorTool
All Implemented Interfaces:
CmdLineTool

public final class SentenceDetectorTool
extends Object
implements CmdLineTool

A sentence detector which uses a maxent model to predict the sentences.


Constructor Summary
SentenceDetectorTool()
           
 
Method Summary
 String getHelp()
          Retrieves a description on how to use the tool.
 String getName()
          Retrieves the name of the training data tool.
 String getShortDescription()
          Retrieves a short description of what the tool does.
 void run(String[] args)
          Perform sentence detection the input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SentenceDetectorTool

public SentenceDetectorTool()
Method Detail

getName

public String getName()
Description copied from interface: CmdLineTool
Retrieves the name of the training data tool. The name (used as command) must not contain white spaces.

Specified by:
getName in interface CmdLineTool
Returns:
the name of the command line tool

getShortDescription

public String getShortDescription()
Description copied from interface: CmdLineTool
Retrieves a short description of what the tool does.

Specified by:
getShortDescription in interface CmdLineTool
Returns:

getHelp

public String getHelp()
Description copied from interface: CmdLineTool
Retrieves a description on how to use the tool.

Specified by:
getHelp in interface CmdLineTool
Returns:

run

public void run(String[] args)
Perform sentence detection the input stream. A newline will be treated as a paragraph boundary.

Specified by:
run in interface CmdLineTool


Copyright © 2010. All Rights Reserved.