public class LabeledChuLiuEdmondsDecoder
extends edu.illinois.cs.cogcomp.sl.core.AbstractInferenceSolver
| Constructor and Description |
|---|
LabeledChuLiuEdmondsDecoder(edu.illinois.cs.cogcomp.sl.core.AbstractFeatureGenerator featureGenerator) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
edu.illinois.cs.cogcomp.sl.core.IStructure |
getBestStructure(edu.illinois.cs.cogcomp.sl.util.WeightVector weight,
edu.illinois.cs.cogcomp.sl.core.IInstance ins) |
float |
getLoss(edu.illinois.cs.cogcomp.sl.core.IInstance ins,
edu.illinois.cs.cogcomp.sl.core.IStructure gold,
edu.illinois.cs.cogcomp.sl.core.IStructure pred) |
edu.illinois.cs.cogcomp.sl.core.IStructure |
getLossAugmentedBestStructure(edu.illinois.cs.cogcomp.sl.util.WeightVector weight,
edu.illinois.cs.cogcomp.sl.core.IInstance ins,
edu.illinois.cs.cogcomp.sl.core.IStructure goldStructure) |
void |
loadDepRelDict() |
void |
saveDepRelDict() |
void |
updateInferenceSolver(DepInst inst)
Side effect: update feature generator inside inference solver
|
public LabeledChuLiuEdmondsDecoder(edu.illinois.cs.cogcomp.sl.core.AbstractFeatureGenerator featureGenerator)
public void updateInferenceSolver(DepInst inst)
public void saveDepRelDict()
throws IOException
IOExceptionpublic void loadDepRelDict()
throws IOException,
ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic edu.illinois.cs.cogcomp.sl.core.IStructure getBestStructure(edu.illinois.cs.cogcomp.sl.util.WeightVector weight,
edu.illinois.cs.cogcomp.sl.core.IInstance ins)
throws Exception
getBestStructure in class edu.illinois.cs.cogcomp.sl.core.AbstractInferenceSolverExceptionpublic edu.illinois.cs.cogcomp.sl.core.IStructure getLossAugmentedBestStructure(edu.illinois.cs.cogcomp.sl.util.WeightVector weight,
edu.illinois.cs.cogcomp.sl.core.IInstance ins,
edu.illinois.cs.cogcomp.sl.core.IStructure goldStructure)
throws Exception
getLossAugmentedBestStructure in class edu.illinois.cs.cogcomp.sl.core.AbstractInferenceSolverExceptionpublic float getLoss(edu.illinois.cs.cogcomp.sl.core.IInstance ins,
edu.illinois.cs.cogcomp.sl.core.IStructure gold,
edu.illinois.cs.cogcomp.sl.core.IStructure pred)
getLoss in class edu.illinois.cs.cogcomp.sl.core.AbstractInferenceSolverpublic Object clone()
clone in class edu.illinois.cs.cogcomp.sl.core.AbstractInferenceSolverCopyright © 2017. All rights reserved.