public class SingleGuide extends java.lang.Object implements ClassifierGuide
ClassifierGuide.GuideMode
Constructor and Description |
---|
SingleGuide(AlgoritmInterface algorithm,
ClassifierGuide.GuideMode guideMode) |
Modifier and Type | Method and Description |
---|---|
void |
addInstance(FeatureModel featureModel,
GuideDecision decision) |
FeatureVector |
extract(FeatureModel featureModel) |
void |
finalizeSentence(DependencyStructure dependencyGraph) |
static java.net.URL |
findURL(java.lang.String specModelFileName,
DependencyParserConfig config) |
DependencyParserConfig |
getConfiguration() |
DecisionModel |
getDecisionModel() |
ClassifierGuide.GuideMode |
getGuideMode() |
java.lang.String |
getGuideName() |
protected void |
initDecisionModel(SingleDecision decision) |
void |
noMoreInstances() |
void |
predict(FeatureModel featureModel,
GuideDecision decision) |
FeatureVector |
predictExtract(FeatureModel featureModel,
GuideDecision decision) |
boolean |
predictFromKBestList(FeatureModel featureModel,
GuideDecision decision) |
void |
setGuideName(java.lang.String guideName) |
void |
terminate() |
java.lang.String |
toString() |
public SingleGuide(AlgoritmInterface algorithm, ClassifierGuide.GuideMode guideMode) throws MaltChainedException
MaltChainedException
public void addInstance(FeatureModel featureModel, GuideDecision decision) throws MaltChainedException
addInstance
in interface ClassifierGuide
MaltChainedException
public void finalizeSentence(DependencyStructure dependencyGraph) throws MaltChainedException
finalizeSentence
in interface Guide
MaltChainedException
public void noMoreInstances() throws MaltChainedException
noMoreInstances
in interface ClassifierGuide
MaltChainedException
public void terminate() throws MaltChainedException
terminate
in interface Guide
MaltChainedException
public void predict(FeatureModel featureModel, GuideDecision decision) throws MaltChainedException
predict
in interface ClassifierGuide
MaltChainedException
public FeatureVector predictExtract(FeatureModel featureModel, GuideDecision decision) throws MaltChainedException
predictExtract
in interface ClassifierGuide
MaltChainedException
public FeatureVector extract(FeatureModel featureModel) throws MaltChainedException
extract
in interface ClassifierGuide
MaltChainedException
public boolean predictFromKBestList(FeatureModel featureModel, GuideDecision decision) throws MaltChainedException
predictFromKBestList
in interface ClassifierGuide
MaltChainedException
public DecisionModel getDecisionModel()
public DependencyParserConfig getConfiguration()
getConfiguration
in interface Guide
public ClassifierGuide.GuideMode getGuideMode()
getGuideMode
in interface ClassifierGuide
protected void initDecisionModel(SingleDecision decision) throws MaltChainedException
MaltChainedException
public java.lang.String getGuideName()
getGuideName
in interface Guide
public void setGuideName(java.lang.String guideName)
setGuideName
in interface Guide
public static java.net.URL findURL(java.lang.String specModelFileName, DependencyParserConfig config) throws MaltChainedException
MaltChainedException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.