public class ILPInference extends AbstractILPInference<SentenceStructure>
| Modifier and Type | Field and Description |
|---|---|
SentenceInstance |
instance |
protected SenseManager |
manager |
protected TextAnnotation |
ta |
debug, solverFactory, xmp| Constructor and Description |
|---|
ILPInference(ILPSolverFactory solverFactory,
SenseManager manager,
List<Constituent> predicates) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConstraints(ILPSolver xmp,
InferenceVariableLexManager variableManager) |
protected void |
addVariables(ILPSolver xmp,
InferenceVariableLexManager variableManager) |
protected SentenceStructure |
getOutput(ILPSolver xmp,
InferenceVariableLexManager variableManager) |
TokenLabelView |
getOutputView() |
static String |
getSenseVariableIdentifier(String type,
int predicateId,
String label) |
protected void |
initializeSolver(ILPSolver xmp,
InferenceVariableLexManager variableManager) |
addConstraint, addEqualityConstraint, addGreaterThanConstraint, addLessThanConstraint, printDebugInfo, reset, runInferencepublic final SentenceInstance instance
protected TextAnnotation ta
protected final SenseManager manager
public ILPInference(ILPSolverFactory solverFactory, SenseManager manager, List<Constituent> predicates) throws Exception
Exceptionprotected void initializeSolver(ILPSolver xmp, InferenceVariableLexManager variableManager)
initializeSolver in class AbstractILPInference<SentenceStructure>protected SentenceStructure getOutput(ILPSolver xmp, InferenceVariableLexManager variableManager) throws Exception
getOutput in class AbstractILPInference<SentenceStructure>Exceptionprotected void addConstraints(ILPSolver xmp, InferenceVariableLexManager variableManager)
addConstraints in class AbstractILPInference<SentenceStructure>protected void addVariables(ILPSolver xmp, InferenceVariableLexManager variableManager)
addVariables in class AbstractILPInference<SentenceStructure>public static String getSenseVariableIdentifier(String type, int predicateId, String label)
public TokenLabelView getOutputView() throws Exception
ExceptionCopyright © 2017. All rights reserved.