edu.stanford.nlp.parser.lexparser
Class Rule

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.Rule
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BinaryRule, UnaryRule

public class Rule
extends Object
implements Serializable

Parent class for unary and binary rules.

Author:
Dan Klein
See Also:
Serialized Form

Field Summary
 int parent
           
 double score
           
 
Constructor Summary
Rule()
           
 
Method Summary
 boolean isUnary()
           
 double score()
           
static Comparator<Rule> scoreComparator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

public int parent

score

public double score
Constructor Detail

Rule

public Rule()
Method Detail

score

public double score()

isUnary

public boolean isUnary()

scoreComparator

public static Comparator<Rule> scoreComparator()


Stanford NLP Group