org.maltparser.ml.lib
Class LibLinear
java.lang.Object
org.maltparser.ml.lib.Lib
org.maltparser.ml.lib.LibLinear
- All Implemented Interfaces:
- LearningMethod
public class LibLinear
- extends Lib
Nested classes/interfaces inherited from class org.maltparser.ml.lib.Lib |
Lib.Verbostity |
Fields inherited from class org.maltparser.ml.lib.Lib |
allowedLibOptionFlags, configLogger, excludeNullValues, featureMap, instanceOutput, learnerMode, libOptions, model, name, numberOfInstances, owner, paramString, pathExternalTrain, pipePattern, saveInstanceFiles, tabPattern, verbosity |
Methods inherited from class org.maltparser.ml.lib.Lib |
addInstance, binariesInstance, binariesInstances2SVMFileFormat, closeInstanceWriter, decreaseNumberOfInstances, finalize, finalizeSentence, getConfigFileEntry, getConfiguration, getFile, getInputStreamFromConfigFileEntry, getInstanceInputStreamReader, getInstanceInputStreamReaderFromConfigFile, getInstanceOutputStreamWriter, getInstanceWriter, getLearnerMode, getLearningMethodName, getLibOptions, getLibParamStringArray, getNumberOfInstances, getOwner, getParamString, getPathExternalTrain, increaseNumberOfInstances, initSpecialParameters, loadFeatureMap, moveAllInstances, noMoreInstances, parseParameters, predict, saveFeatureMap, setLearnerMode, setLearningMethodName, setNumberOfInstances, setOwner, setPathExternalTrain, toString, train |
LibLinear
public LibLinear(InstanceModel owner,
Integer learnerMode)
throws MaltChainedException
- Throws:
MaltChainedException
trainInternal
protected void trainInternal(FeatureVector featureVector)
throws MaltChainedException
- Specified by:
trainInternal
in class Lib
- Throws:
MaltChainedException
eliminate
public static boolean eliminate(double[] a)
trainExternal
protected void trainExternal(FeatureVector featureVector)
throws MaltChainedException
- Specified by:
trainExternal
in class Lib
- Throws:
MaltChainedException
terminate
public void terminate()
throws MaltChainedException
- Specified by:
terminate
in interface LearningMethod
- Overrides:
terminate
in class Lib
- Throws:
MaltChainedException
initLibOptions
public void initLibOptions()
- Specified by:
initLibOptions
in class Lib
initAllowedLibOptionFlags
public void initAllowedLibOptionFlags()
- Specified by:
initAllowedLibOptionFlags
in class Lib
Copyright 2007-2012 Johan Hall, Jens Nilsson and Joakim Nivre.