public class State extends java.lang.Object implements Scored
push
operation.
Modifier and Type | Class and Description |
---|---|
static class |
State.HeadPosition
Used to describe the relative location of separators to the head of a subtree
|
Constructor and Description |
---|
State(java.util.List<Tree> sentence)
Expects a list of preterminals.
|
Modifier and Type | Method and Description |
---|---|
boolean |
areTransitionsEqual(State other)
Whether or not the transitions that built the two states are
equal.
|
boolean |
endOfQueue() |
boolean |
isFinished() |
double |
score() |
java.lang.String |
toString() |
public State(java.util.List<Tree> sentence)
public double score()
public boolean isFinished()
public boolean endOfQueue()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean areTransitionsEqual(State other)