|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.tools.cmdline.CmdLineTool
opennlp.tools.cmdline.TypedCmdLineTool<T>
opennlp.tools.cmdline.AbstractConverterTool<T>
T
- class of data sample the tool converts, for example .POSSample
public abstract class AbstractConverterTool<T>
Base class for format conversion tools.
Field Summary |
---|
Fields inherited from class opennlp.tools.cmdline.TypedCmdLineTool |
---|
type |
Constructor Summary | |
---|---|
protected |
AbstractConverterTool(Class<T> sampleType)
Constructor with type parameter. |
Method Summary | |
---|---|
String |
getHelp()
Retrieves a description on how to use the tool. |
String |
getHelp(String format)
Retrieves a description on how to use the tool. |
String |
getShortDescription()
Retrieves a short description of what the tool does. |
void |
run(String format,
String[] args)
Executes the tool with the given parameters. |
Methods inherited from class opennlp.tools.cmdline.TypedCmdLineTool |
---|
getBasicHelp, getStreamFactory, validateAllArgs, validateFactoryArgs |
Methods inherited from class opennlp.tools.cmdline.CmdLineTool |
---|
getBasicHelp, getName, hasParams, validateAndParseParams |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractConverterTool(Class<T> sampleType)
sampleType
- class of the template parameterMethod Detail |
---|
public String getShortDescription()
CmdLineTool
getShortDescription
in class CmdLineTool
public String getHelp()
CmdLineTool
getHelp
in class TypedCmdLineTool<T>
public String getHelp(String format)
TypedCmdLineTool
getHelp
in class TypedCmdLineTool<T>
format
- data format
public void run(String format, String[] args)
TypedCmdLineTool
run
in class TypedCmdLineTool<T>
format
- format to work withargs
- command line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |