opennlp.tools.cmdline
Class AbstractConverterTool<T>

java.lang.Object
  extended by opennlp.tools.cmdline.AbstractConverterTool<T>
All Implemented Interfaces:
CmdLineTool
Direct Known Subclasses:
POSTaggerConverter, SentenceDetectorConverterTool, TokenizerConverterTool, TokenNameFinderConverterTool

public abstract class AbstractConverterTool<T>
extends Object
implements CmdLineTool


Constructor Summary
AbstractConverterTool()
           
 
Method Summary
protected abstract  ObjectStreamFactory<T> createStreamFactory(String format)
           
 String getHelp()
          Retrieves a description on how to use the tool.
 void run(String[] args)
          Executes the tool with the given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface opennlp.tools.cmdline.CmdLineTool
getName, getShortDescription
 

Constructor Detail

AbstractConverterTool

public AbstractConverterTool()
Method Detail

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:

createStreamFactory

protected abstract ObjectStreamFactory<T> createStreamFactory(String format)

run

public void run(String[] args)
Description copied from interface: CmdLineTool
Executes the tool with the given parameters.

Specified by:
run in interface CmdLineTool


Copyright © 2010. All Rights Reserved.