Class ParserTool

java.lang.Object
opennlp.tools.cmdline.CmdLineTool
opennlp.tools.cmdline.BasicCmdLineTool
opennlp.tools.cmdline.parser.ParserTool

public final class ParserTool extends opennlp.tools.cmdline.BasicCmdLineTool
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    static opennlp.tools.parser.Parse[]
    parseLine(String line, opennlp.tools.parser.Parser parser, int numParses)
     
    static opennlp.tools.parser.Parse[]
    parseLine(String line, opennlp.tools.parser.Parser parser, opennlp.tools.tokenize.Tokenizer tokenizer, int numParses)
     
    void
    run(String[] args)
    Executes the tool with the given parameters.

    Methods inherited from class opennlp.tools.cmdline.CmdLineTool

    getName, hasParams

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ParserTool

      public ParserTool()
  • Method Details

    • getShortDescription

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

      public String getHelp()
      Specified by:
      getHelp in class opennlp.tools.cmdline.CmdLineTool
      Returns:
      Retrieves a description on how to use the tool
    • parseLine

      public static opennlp.tools.parser.Parse[] parseLine(String line, opennlp.tools.parser.Parser parser, int numParses)
    • parseLine

      public static opennlp.tools.parser.Parse[] parseLine(String line, opennlp.tools.parser.Parser parser, opennlp.tools.tokenize.Tokenizer tokenizer, int numParses)
    • run

      public void run(String[] args)
      Description copied from class: opennlp.tools.cmdline.BasicCmdLineTool
      Executes the tool with the given parameters.
      Specified by:
      run in class opennlp.tools.cmdline.BasicCmdLineTool
      Parameters:
      args - arguments