Parsing Engine

danbikel.parser
Class CKYItem.BaseNPAware

java.lang.Object
  extended bydanbikel.parser.Item
      extended bydanbikel.parser.CKYItem
          extended bydanbikel.parser.CKYItem.BaseNPAware
All Implemented Interfaces:
Comparable, Serializable, SexpConvertible
Enclosing class:
CKYItem

public static class CKYItem.BaseNPAware
extends CKYItem

A base NP–aware version of CKYItem that overrides equals(java.lang.Object) and hashCode() to take into account the lack of dependence on the distance metric when the root label of an item's set of derivations is NPB.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class danbikel.parser.CKYItem
CKYItem.BaseNPAware, CKYItem.KBestHack, CKYItem.MappedPrevModBaseNPAware, CKYItem.PrevModIsStart
 
Field Summary
 
Fields inherited from class danbikel.parser.CKYItem
baseNPsCannotContainVerbs, constraint, containsVerb, containsVerbFalse, containsVerbTrue, containsVerbUndefined, end, garbage, headChild, headWord, label, leftChildren, leftPrevMods, leftSubcat, leftVerb, logPrior, logTreeProb, nonTreebankDelimiter, nonTreebankLeftBracket, nonTreebankRightBracket, numParses, numPrevMods, numPrevWords, outputLexLabels, rightChildren, rightPrevMods, rightSubcat, rightVerb, start, stop, stopWord, topSym
 
Fields inherited from class danbikel.parser.Item
logProb
 
Constructor Summary
CKYItem.BaseNPAware()
           
 
Method Summary
 boolean equals(Object obj)
          Returns whether the specified object is equal (or “chart item equivalent”) to this item.
 int hashCode()
          Returns a hash code for this item.
 Symbol headLabel()
          Returns the root nonterminal label of the derivation of this item's head child.
 
Methods inherited from class danbikel.parser.CKYItem
children, clear, containsVerb, containsVerbRecursive, edgeIndex, end, garbage, getConstraint, getLabel, hasAntecedent, hasEquivalentItem, headChild, headWord, isPreterminal, label, leftChildren, leftPrevMods, leftSubcat, leftVerb, logPrior, logProb, logTreeProb, numLeftChildren, numParses, numRightChildren, prevMods, prevWordsEqual, prevWordsEqual, rightChildren, rightPrevMods, rightSubcat, rightVerb, set, setChildren, setConstraint, setDataFrom, setEdgeIndex, setGarbage, setLabel, setLeftSubcat, setLogPrior, setLogProb, setLogTreeProb, setPrevMods, setRightSubcat, setSideInfo, setSubcat, setVerb, shortBool, shortContainsVerb, start, stop, subcat, toSexp, toSexpInternal, toString, verb
 
Methods inherited from class danbikel.parser.Item
compareTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CKYItem.BaseNPAware

public CKYItem.BaseNPAware()
Method Detail

headLabel

public Symbol headLabel()
Description copied from class: CKYItem
Returns the root nonterminal label of the derivation of this item's head child.

Overrides:
headLabel in class CKYItem
Returns:
the root nonterminal label of the derivation of this item's head child.

equals

public boolean equals(Object obj)
Returns whether the specified object is equal (or “chart item equivalent”) to this item. Unlike this method in the superclass, there are special cases when

Overrides:
equals in class CKYItem
Parameters:
obj - the object to be compared with this object
Returns:
whether the specified object is equal (or “chart item equivalent”) to this item

hashCode

public int hashCode()
Returns a hash code for this item.

Overrides:
hashCode in class CKYItem
Returns:
a hash code for this item

Parsing Engine

Author: Dan Bikel.