edu.umn.cs.nlp.parser
Class BasicRuleLHS

java.lang.Object
  extended by edu.umn.cs.nlp.parser.BasicRuleLHS
All Implemented Interfaces:
Scorable, Comparable<BasicRuleLHS>

public class BasicRuleLHS
extends Object
implements Comparable<BasicRuleLHS>, Scorable

The left-hand side of a grammar rule, including associated log probability.

Version:
$LastChangedDate: 2007-09-27 11:49:43 -0500 (Thu, 27 Sep 2007) $
Author:
Lane Schwartz

Constructor Summary
BasicRuleLHS(String symbol)
           
BasicRuleLHS(String symbol, double logProb)
           
 
Method Summary
 int compareTo(BasicRuleLHS t)
           
 boolean equals(BasicRuleLHS t)
           
 double getLogProb()
           
 double getScore()
          Get score
 String getSymbol()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicRuleLHS

public BasicRuleLHS(String symbol,
                    double logProb)

BasicRuleLHS

public BasicRuleLHS(String symbol)
Method Detail

getLogProb

public double getLogProb()

getScore

public double getScore()
Description copied from interface: Scorable
Get score

Specified by:
getScore in interface Scorable
Returns:
score

getSymbol

public String getSymbol()

compareTo

public int compareTo(BasicRuleLHS t)
Specified by:
compareTo in interface Comparable<BasicRuleLHS>

equals

public boolean equals(BasicRuleLHS t)

toString

public String toString()
Overrides:
toString in class Object