Class SentenceDetectorTool


public final class SentenceDetectorTool extends BasicCmdLineTool
A sentence detector which uses a maxent model to predict the sentences.
  • Field Details

    • logger

      private static final org.slf4j.Logger logger
  • Constructor Details

    • SentenceDetectorTool

      public SentenceDetectorTool()
  • Method Details

    • getShortDescription

      public String getShortDescription()
      Overrides:
      getShortDescription in class CmdLineTool
      Returns:
      Retrieves a short description of what the tool does
    • getHelp

      public String getHelp()
      Specified by:
      getHelp in class CmdLineTool
      Returns:
      Retrieves a description on how to use the tool
    • run

      public void run(String[] args)
      Perform sentence detection on a stream of sentences.

      A newline will be treated as a paragraph boundary.

      Specified by:
      run in class BasicCmdLineTool
      Parameters:
      args - arguments