edu.stanford.nlp.parser.lexparser
Class UnaryRule

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.Rule
      extended by 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

Field Summary
 int child
           
 
Fields inherited from class edu.stanford.nlp.parser.lexparser.Rule
parent, score
 
Constructor Summary
UnaryRule()
           
UnaryRule(int parent, int child, double score)
           
UnaryRule(String s, Numberer n)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 int hashCode()
           
 boolean isUnary()
           
 String toString()
           
 
Methods inherited from class edu.stanford.nlp.parser.lexparser.Rule
score, scoreComparator
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

child

public int child
Constructor Detail

UnaryRule

public UnaryRule()

UnaryRule

public UnaryRule(String s,
                 Numberer n)

UnaryRule

public UnaryRule(int parent,
                 int child,
                 double score)
Method Detail

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