opennlp.tools.cmdline
Class BasicTrainingParameters

java.lang.Object
  extended by opennlp.tools.cmdline.BasicTrainingParameters
Direct Known Subclasses:
TrainingParameters

public class BasicTrainingParameters
extends Object

Parses common training parameters. Note: Do not use this class, internal use only!


Constructor Summary
BasicTrainingParameters(String[] args)
           
 
Method Summary
 int getCutoff()
           
static String getDescription()
           
 Charset getEncoding()
           
 String getLanguage()
          Retrieves the mandatory language parameter.
 int getNumberOfIterations()
          Retrieves the optional iterations parameter.
static String getParameterUsage()
           
 boolean isValid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTrainingParameters

public BasicTrainingParameters(String[] args)
Method Detail

getLanguage

public String getLanguage()
Retrieves the mandatory language parameter.

Returns:

getEncoding

public Charset getEncoding()

getNumberOfIterations

public int getNumberOfIterations()
Retrieves the optional iterations parameter.

Returns:
specified number or 100 (default)

getCutoff

public int getCutoff()

isValid

public boolean isValid()

getParameterUsage

public static String getParameterUsage()

getDescription

public static String getDescription()


Copyright © 2010. All Rights Reserved.