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:
- Serializable, Comparable
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 |
child
public int child
UnaryRule
public UnaryRule()
UnaryRule
public UnaryRule(String s,
Numberer n)
UnaryRule
public UnaryRule(int parent,
int child,
double score)
isUnary
public boolean isUnary()
- Overrides:
isUnary
in class Rule
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
toString
public String toString()
- Overrides:
toString
in class Object
Stanford NLP Group