edu.stanford.nlp.parser.lexparser
Class Hook

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.Item
      extended by 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

Field Summary
 int subState
           
 
Fields inherited from class edu.stanford.nlp.parser.lexparser.Item
backEdge, end, head, iScore, oScore, start, state, tag
 
Constructor Summary
Hook()
           
Hook(Hook h)
           
 
Method Summary
 boolean equals(Object o)
          Hooks are equal if they have same state, substate, head, tag, start, and end.
 int hashCode()
           
 boolean isPostHook()
           
 boolean isPreHook()
           
 String toString()
           
 
Methods inherited from class edu.stanford.nlp.parser.lexparser.Item
isEdge, score
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

subState

public int subState
Constructor Detail

Hook

public Hook()

Hook

public Hook(Hook h)
Method Detail

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