public class RuleNameFeature extends FeatureFunction<String,Double>
| Constructor and Description |
|---|
RuleNameFeature(String x) |
| 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 |
getX() |
String |
toString() |
public RuleNameFeature(String x)
public String getX()
public Double evaluate(Rule rule, TreeAutomaton<String> automaton, MaximumEntropyIrtg irtg, Map<String,Object> inputs)
FeatureFunctionevaluate 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.