edu.stanford.nlp.parser.lexparser
Class Hook
java.lang.Object
edu.stanford.nlp.parser.lexparser.Hook
- All Implemented Interfaces:
- Scored
public class Hook
- extends Object
Class for parse table hooks. A "hook" is the parse item that Eisner and
Satta introduced to reduce the complexity of lexicalized parsing to
O(n^4).
- Author:
- Dan Klein
Constructor Summary |
Hook()
|
subState
public int subState
start
public int start
end
public int end
state
public int state
head
public int head
tag
public int tag
backEdge
public Edge backEdge
iScore
public double iScore
oScore
public double oScore
Hook
public Hook()
isPreHook
public boolean isPreHook()
isPostHook
public boolean isPostHook()
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Hooks are equal if they have same state, substate, head, tag, start,
and end.
- Overrides:
equals
in class Object
score
public double score()
- Specified by:
score
in interface Scored
- Returns:
- The score of this thing.
isEdge
public boolean isEdge()
Stanford NLP Group