|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opennlp.grok.expression.AbstractCat
Abstract category adapter for CCG categories.
Field Summary | |
protected opennlp.common.unify.FeatureStructure |
_featStruc
The feature structure, which should only be used with atomic categories. |
protected opennlp.common.synsem.LF |
_lf
The logical form, which should be used only with the outermost category. |
protected gnu.trove.TLinkable |
_next
|
protected gnu.trove.TLinkable |
_previous
|
static boolean |
SHOW_SEMANTICS
|
Constructor Summary | |
AbstractCat()
Default constructor. |
|
AbstractCat(org.jdom.Element elt)
Constructor which retrieves the LF from the XML element and flattens it to a conjunction of elementary predications (or a single one). |
|
AbstractCat(opennlp.common.synsem.LF lf)
Constructor which sets the LF. |
Method Summary | |
abstract opennlp.common.synsem.Category |
copy()
|
void |
deepMap(opennlp.common.unify.ModFcn mf)
|
abstract boolean |
equals(java.lang.Object c)
|
abstract java.lang.Object |
fill(opennlp.common.unify.Substitution s)
|
void |
forall(opennlp.common.synsem.CategoryFcn f)
|
opennlp.common.unify.FeatureStructure |
getFeatureStructure()
Gets the feature structure. |
opennlp.common.synsem.LF |
getLF()
Gets the LF. |
gnu.trove.TLinkable |
getNext()
Returns the linked list node after this one. |
gnu.trove.TLinkable |
getPrevious()
Returns the linked list node before this one. |
java.lang.String |
hashString()
Returns a unique string for this category. |
abstract java.lang.String |
hashString(java.util.Map varMap)
Returns a hash string using the given map from vars to int strings. |
boolean |
occurs(opennlp.common.unify.Variable v)
|
protected int |
prettyLength(java.lang.String s)
|
java.lang.String |
prettyPrint()
|
protected java.lang.String |
prettyPrint(java.lang.String pad)
|
void |
setFeatureStructure(opennlp.common.unify.FeatureStructure fs)
Sets the feature structure. |
void |
setLF(opennlp.common.synsem.LF lf)
Sets the LF. |
void |
setNext(gnu.trove.TLinkable linkable)
Sets the linked list node after this one. |
void |
setPrevious(gnu.trove.TLinkable linkable)
Sets the linked list node before this one. |
boolean |
shallowEquals(java.lang.Object o)
|
static boolean |
showFeature()
|
static int |
tooLong()
|
abstract java.lang.String |
toString()
|
abstract java.lang.Object |
unify(java.lang.Object u,
opennlp.common.unify.Substitution sub)
NB: The LF does not participate in unification. |
abstract void |
unifyCheck(java.lang.Object u)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static boolean SHOW_SEMANTICS
protected opennlp.common.unify.FeatureStructure _featStruc
protected opennlp.common.synsem.LF _lf
protected gnu.trove.TLinkable _previous
protected gnu.trove.TLinkable _next
Constructor Detail |
public AbstractCat()
public AbstractCat(opennlp.common.synsem.LF lf)
public AbstractCat(org.jdom.Element elt)
Method Detail |
public opennlp.common.unify.FeatureStructure getFeatureStructure()
getFeatureStructure
in interface opennlp.common.synsem.Category
public void setFeatureStructure(opennlp.common.unify.FeatureStructure fs)
setFeatureStructure
in interface opennlp.common.synsem.Category
public opennlp.common.synsem.LF getLF()
getLF
in interface opennlp.common.synsem.Category
public void setLF(opennlp.common.synsem.LF lf)
setLF
in interface opennlp.common.synsem.Category
public abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract boolean equals(java.lang.Object c)
equals
in interface opennlp.common.unify.Unifiable
equals
in class java.lang.Object
public abstract opennlp.common.synsem.Category copy()
copy
in interface opennlp.common.synsem.Category
public abstract java.lang.Object fill(opennlp.common.unify.Substitution s) throws opennlp.common.unify.UnifyFailure
fill
in interface opennlp.common.unify.Unifiable
opennlp.common.unify.UnifyFailure
public abstract void unifyCheck(java.lang.Object u) throws opennlp.common.unify.UnifyFailure
unifyCheck
in interface opennlp.common.unify.Unifiable
opennlp.common.unify.UnifyFailure
public abstract java.lang.Object unify(java.lang.Object u, opennlp.common.unify.Substitution sub) throws opennlp.common.unify.UnifyFailure
unify
in interface opennlp.common.unify.Unifiable
opennlp.common.unify.UnifyFailure
public boolean shallowEquals(java.lang.Object o)
shallowEquals
in interface opennlp.common.synsem.Category
public void deepMap(opennlp.common.unify.ModFcn mf)
deepMap
in interface opennlp.common.unify.Mutable
public void forall(opennlp.common.synsem.CategoryFcn f)
forall
in interface opennlp.common.synsem.Category
public boolean occurs(opennlp.common.unify.Variable v)
occurs
in interface opennlp.common.unify.Unifiable
public java.lang.String prettyPrint()
protected java.lang.String prettyPrint(java.lang.String pad)
protected int prettyLength(java.lang.String s)
public java.lang.String hashString()
hashString
in interface opennlp.common.synsem.Category
public abstract java.lang.String hashString(java.util.Map varMap)
hashString
in interface opennlp.common.synsem.Category
public static boolean showFeature()
public static int tooLong()
public gnu.trove.TLinkable getNext()
getNext
in interface gnu.trove.TLinkable
TLinkable
valuepublic gnu.trove.TLinkable getPrevious()
getPrevious
in interface gnu.trove.TLinkable
TLinkable
valuepublic void setNext(gnu.trove.TLinkable linkable)
setNext
in interface gnu.trove.TLinkable
linkable
- a TLinkable
valuepublic void setPrevious(gnu.trove.TLinkable linkable)
setPrevious
in interface gnu.trove.TLinkable
linkable
- a TLinkable
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |