edu.umn.cs.nlp.parser
Class BasicRuleLHS
java.lang.Object
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
BasicRuleLHS
public BasicRuleLHS(String symbol,
double logProb)
BasicRuleLHS
public BasicRuleLHS(String symbol)
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