|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectup.Rule
public abstract class Rule
A rule of a PCFG.
Constructor Summary | |
---|---|
Rule()
Constructs a new rule. |
Method Summary | |
---|---|
abstract int |
getLHS()
Returns the left-hand side of this rule. |
double |
getScore()
Returns the score of this rule. |
void |
setScore(double score)
Replaces the score of this rule with the specified value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Rule()
Method Detail |
---|
public abstract int getLHS()
public double getScore()
public void setScore(double score)
score
- the new score of this rule
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |