opennlp.tools.cmdline
Class BasicTrainingParameters
java.lang.Object
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!
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicTrainingParameters
public BasicTrainingParameters(String[] args)
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.