edu.stanford.nlp.parser.lexparser
Class Hook
java.lang.Object
edu.stanford.nlp.parser.lexparser.Item
edu.stanford.nlp.parser.lexparser.Hook
- All Implemented Interfaces:
- Scored
public class Hook
- extends Item
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(boolean exhaustiveTest)
|
Hook(Hook h)
|
Methods inherited from class edu.stanford.nlp.parser.lexparser.Item |
isEdge, score |
subState
public int subState
Hook
public Hook(boolean exhaustiveTest)
Hook
public Hook(Hook h)
isPreHook
public boolean isPreHook()
- Overrides:
isPreHook
in class Item
isPostHook
public boolean isPostHook()
- Overrides:
isPostHook
in class Item
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
Stanford NLP Group