|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectup.Rule
up.PreterminalRule
public class PreterminalRule
A preterminal rule. This is a rule of the form A → word.
| Constructor Summary | |
|---|---|
PreterminalRule(int lhs,
int rhs)
Constructs a new preterminal rule. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests whether this rule is equal to the specified object. |
int |
getLHS()
Returns the left-hand side of this rule. |
int |
getRHS()
Returns the right-hand side of this rule. |
int |
hashCode()
Returns the hash code of this rule. |
| Methods inherited from class up.Rule |
|---|
getScore, setScore |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PreterminalRule(int lhs,
int rhs)
lhs - the left-hand side (POS tag) of the new rulerhs - the right-hand side (word token) of the new rule| Method Detail |
|---|
public int getLHS()
getLHS in class Rulepublic int getRHS()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare with
true iff this rule is equal to the specified objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||