|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdanbikel.parser.Item
danbikel.parser.CKYItem
danbikel.parser.CKYItem.MappedPrevModBaseNPAware
public static class CKYItem.MappedPrevModBaseNPAware
Overrides equals
and hashCode
methods to compare
the last previous modifier on each side of each chart item's head child
with respect to their respective equivalence classes, as determined by the
mapping provided by NTMapper.map(Symbol)
.
mappedPrevModsEqual(CKYItem)
,
NonterminalMapper
,
NTMapper
,
Settings.prevModMapperClass
,
Serialized FormNested 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.MappedPrevModBaseNPAware()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
Returns true if and only if the specified object is
also an instance of a CKYItem and all elements of
this CKYItem are equal to those of the specified
CKYItem , except their left and right children lists
and their log probability values. |
int |
hashCode()
Computes the hash code based on all elements used by the equals(java.lang.Object) method. |
protected boolean |
mappedPrevModsEqual(CKYItem other)
Returns true if the most recvent previous modifiers on both the left and right sides of the head child are equivalent to the respective left and right previous modifiers of the specified chart item. |
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 |
---|
public CKYItem.MappedPrevModBaseNPAware()
Method Detail |
---|
public boolean equals(Object obj)
true
if and only if the specified object is
also an instance of a CKYItem
and all elements of
this CKYItem
are equal to those of the specified
CKYItem
, except their left and right children lists
and their log probability values. Unlike this method in the superclass,
there are special cases when
mappedPrevModsEqual(CKYItem)
method.
equals
in class CKYItem
obj
- the object to compare to this object
protected boolean mappedPrevModsEqual(CKYItem other)
NTMapper.map(Symbol)
method.
other
- the other chart item whose most recent previous modifiers
are to be compared to those of this item
NonterminalMapper
,
NTMapper
,
Settings.prevModMapperClass
public int hashCode()
equals(java.lang.Object)
method.
hashCode
in class CKYItem
|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |