edu.stanford.nlp.parser.lexparser
Class UnaryRule
java.lang.Object
edu.stanford.nlp.parser.lexparser.Rule
edu.stanford.nlp.parser.lexparser.UnaryRule
- All Implemented Interfaces:
- Comparable, Serializable
- public class UnaryRule
- extends Rule
- implements Serializable, Comparable
Unary Rules (with ints for parent and child)
- Author:
- Dan Klein
- See Also:
- Serialized Form
Fields inherited from class edu.stanford.nlp.parser.lexparser.Rule |
parent, score |
Methods inherited from class edu.stanford.nlp.parser.lexparser.Rule |
score |
child
public int child
UnaryRule
public UnaryRule()
UnaryRule
public UnaryRule(int parent,
int child,
double score)
isUnary
public boolean isUnary()
- Overrides:
isUnary
in class Rule
hashCode
public int hashCode()
equals
public boolean equals(Object o)
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
toString
public String toString()
Stanford NLP Group