Parsing Engine

danbikel.parser
Class CKYItem.KBestHack

java.lang.Object
  extended by danbikel.parser.Item
      extended by danbikel.parser.CKYItem
          extended by danbikel.parser.CKYItem.MappedPrevModBaseNPAware
              extended by danbikel.parser.CKYItem.KBestHack
All Implemented Interfaces:
SexpConvertible, Serializable, Comparable
Enclosing class:
CKYItem

public static class CKYItem.KBestHack
extends CKYItem.MappedPrevModBaseNPAware

A hack to approximate k-best parsing by effectively turning off dynamic programming (usability depends on reducing the beam size from its normal value). Two KBestHack chart items are only equal if they are object-equal.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces 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, outputInsideProbs, outputLexLabels, rightChildren, rightPrevMods, rightSubcat, rightVerb, start, stop, stopWord, topSym
 
Fields inherited from class danbikel.parser.Item
logProb
 
Constructor Summary
CKYItem.KBestHack()
           
 
Method Summary
 boolean equals(Object obj)
          Returns whether this object is object-equal to the specified object.
 int hashCode()
          Returns the value of System.identityHashCode(this).
 
Methods inherited from class danbikel.parser.CKYItem.MappedPrevModBaseNPAware
mappedPrevModsEqual
 
Methods inherited from class danbikel.parser.CKYItem
children, clear, containsVerb, containsVerbRecursive, edgeIndex, end, garbage, getConstraint, getLabel, hasAntecedent, hasEquivalentItem, headChild, headLabel, headWord, headWordIdx, 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.KBestHack

public CKYItem.KBestHack()
Method Detail

hashCode

public int hashCode()
Returns the value of System.identityHashCode(this).

Overrides:
hashCode in class CKYItem.MappedPrevModBaseNPAware
Returns:
the value of System.identityHashCode(this).

equals

public boolean equals(Object obj)
Returns whether this object is object-equal to the specified object.

Overrides:
equals in class CKYItem.MappedPrevModBaseNPAware
Parameters:
obj - the object to be compared to this object
Returns:
whether this object is object-equal to the specified object.

Parsing Engine

Author: Dan Bikel.