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
MaltChainedExceptionpublic void addInstance(FeatureModel featureModel, GuideDecision decision) throws MaltChainedException
addInstance in interface ClassifierGuideMaltChainedExceptionpublic void finalizeSentence(DependencyStructure dependencyGraph) throws MaltChainedException
finalizeSentence in interface GuideMaltChainedExceptionpublic void noMoreInstances() throws MaltChainedException
noMoreInstances in interface ClassifierGuideMaltChainedExceptionpublic void terminate() throws MaltChainedException
terminate in interface GuideMaltChainedExceptionpublic void predict(FeatureModel featureModel, GuideDecision decision) throws MaltChainedException
predict in interface ClassifierGuideMaltChainedExceptionpublic FeatureVector predictExtract(FeatureModel featureModel, GuideDecision decision) throws MaltChainedException
predictExtract in interface ClassifierGuideMaltChainedExceptionpublic FeatureVector extract(FeatureModel featureModel) throws MaltChainedException
extract in interface ClassifierGuideMaltChainedExceptionpublic boolean predictFromKBestList(FeatureModel featureModel, GuideDecision decision) throws MaltChainedException
predictFromKBestList in interface ClassifierGuideMaltChainedExceptionpublic DecisionModel getDecisionModel()
public DependencyParserConfig getConfiguration()
getConfiguration in interface Guidepublic ClassifierGuide.GuideMode getGuideMode()
getGuideMode in interface ClassifierGuideprotected void initDecisionModel(SingleDecision decision) throws MaltChainedException
MaltChainedExceptionpublic java.lang.String getGuideName()
getGuideName in interface Guidepublic void setGuideName(java.lang.String guideName)
setGuideName in interface Guidepublic static java.net.URL findURL(java.lang.String specModelFileName, DependencyParserConfig config) throws MaltChainedException
MaltChainedExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.