public class ChildOfFeature extends FeatureFunction<String,Double>
Constructor and Description |
---|
ChildOfFeature(String parentLabel,
String childLabel) |
Modifier and Type | Method and Description |
---|---|
Double |
evaluate(Rule rule,
TreeAutomaton<String> automaton,
MaximumEntropyIrtg irtg,
Map<String,Object> inputs)
Computes the value of the feature function for a given rule.
|
String |
getChildLabel() |
String |
getParentLabel() |
String |
toString() |
public String getParentLabel()
public String getChildLabel()
public Double evaluate(Rule rule, TreeAutomaton<String> automaton, MaximumEntropyIrtg irtg, Map<String,Object> inputs)
FeatureFunction
evaluate
in class FeatureFunction<String,Double>
rule
- a rule in "automaton"automaton
- the tree automaton to which "rule" belongs, typically a parse chartirtg
- the maxent IRTG which defined the grammar rule on which "rule" is basedinputs
- the inputs that are currently being parsedpublic String toString()
toString
in class FeatureFunction<String,Double>
Copyright © 2017. All rights reserved.