opennlp.grok.unify
Class GFeatStruc
java.lang.Object
|
+--gnu.trove.THash
|
+--gnu.trove.TObjectHash
|
+--gnu.trove.THashMap
|
+--opennlp.grok.unify.GFeatStruc
- All Implemented Interfaces:
- opennlp.common.unify.FeatureStructure, java.util.Map, opennlp.common.unify.Mutable, java.io.Serializable, gnu.trove.TObjectHashingStrategy, opennlp.common.unify.Unifiable
- public class GFeatStruc
- extends gnu.trove.THashMap
- implements opennlp.common.unify.FeatureStructure
A feature structure for use with Grok categories.
- Version:
- $Revision: 1.27 $, $Date: 2003/02/20 12:07:52 $
- Author:
- Jason Baldridge, Gann Bierner, Michael White
- See Also:
- Serialized Form
Fields inherited from class gnu.trove.THashMap |
_values |
Fields inherited from class gnu.trove.TObjectHash |
_set, REMOVED |
Fields inherited from class gnu.trove.THash |
_free, _loadFactor, _maxSize, _size, DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR |
Method Summary |
boolean |
attributeHasValue(java.lang.String attribute,
java.lang.Object val)
|
void |
clear()
|
boolean |
contains(opennlp.common.unify.FeatureStructure fs)
|
opennlp.common.unify.FeatureStructure |
copy()
|
void |
deepMap(opennlp.common.unify.ModFcn mf)
|
boolean |
equals(opennlp.common.unify.FeatureStructure fs)
|
java.lang.Object |
fill(opennlp.common.unify.Substitution sub)
|
opennlp.common.unify.FeatureStructure |
filter(opennlp.common.util.FilterFcn ff)
|
java.util.Set |
getAttributes()
|
int |
getIndex()
|
int |
getInheritsFrom()
|
java.lang.Object |
getValue(java.lang.String attribute)
|
boolean |
hasAttribute(java.lang.String attribute)
|
java.lang.String |
hashString(java.util.Map varMap)
Returns a hash string using the given map from vars to int strings. |
opennlp.common.unify.FeatureStructure |
inherit(opennlp.common.unify.FeatureStructure fs)
|
boolean |
occurs(opennlp.common.unify.Variable v)
|
void |
setFeature(java.lang.String attribute,
java.lang.Object val)
|
void |
setIndex(int index)
|
java.lang.String |
toString()
|
java.lang.Object |
unify(java.lang.Object u,
opennlp.common.unify.Substitution sub)
|
void |
unifyCheck(java.lang.Object u)
|
Methods inherited from class gnu.trove.THashMap |
containsKey, containsValue, entrySet, equals, forEachEntry, forEachKey, forEachValue, get, keySet, put, putAll, rehash, remove, removeAt, retainEntries, setUp, transformValues, values |
Methods inherited from class gnu.trove.TObjectHash |
capacity, computeHashCode, contains, equals, forEach, index, insertionIndex |
Methods inherited from class gnu.trove.THash |
compact, ensureCapacity, isEmpty, postInsertHook, size, trimToSize |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface opennlp.common.unify.FeatureStructure |
isEmpty, size |
Methods inherited from interface opennlp.common.unify.Unifiable |
equals |
Methods inherited from interface java.util.Map |
hashCode, isEmpty, size |
GFeatStruc
public GFeatStruc()
GFeatStruc
public GFeatStruc(int i)
GFeatStruc
public GFeatStruc(org.jdom.Element fsEl)
deepMap
public void deepMap(opennlp.common.unify.ModFcn mf)
- Specified by:
deepMap
in interface opennlp.common.unify.Mutable
setFeature
public void setFeature(java.lang.String attribute,
java.lang.Object val)
- Specified by:
setFeature
in interface opennlp.common.unify.FeatureStructure
getValue
public java.lang.Object getValue(java.lang.String attribute)
- Specified by:
getValue
in interface opennlp.common.unify.FeatureStructure
hasAttribute
public boolean hasAttribute(java.lang.String attribute)
- Specified by:
hasAttribute
in interface opennlp.common.unify.FeatureStructure
attributeHasValue
public boolean attributeHasValue(java.lang.String attribute,
java.lang.Object val)
- Specified by:
attributeHasValue
in interface opennlp.common.unify.FeatureStructure
getAttributes
public java.util.Set getAttributes()
- Specified by:
getAttributes
in interface opennlp.common.unify.FeatureStructure
clear
public void clear()
- Specified by:
clear
in interface opennlp.common.unify.FeatureStructure
- Overrides:
clear
in class gnu.trove.THashMap
equals
public boolean equals(opennlp.common.unify.FeatureStructure fs)
- Specified by:
equals
in interface opennlp.common.unify.FeatureStructure
copy
public opennlp.common.unify.FeatureStructure copy()
- Specified by:
copy
in interface opennlp.common.unify.FeatureStructure
filter
public opennlp.common.unify.FeatureStructure filter(opennlp.common.util.FilterFcn ff)
- Specified by:
filter
in interface opennlp.common.unify.FeatureStructure
contains
public boolean contains(opennlp.common.unify.FeatureStructure fs)
- Specified by:
contains
in interface opennlp.common.unify.FeatureStructure
occurs
public boolean occurs(opennlp.common.unify.Variable v)
- Specified by:
occurs
in interface opennlp.common.unify.Unifiable
unifyCheck
public void unifyCheck(java.lang.Object u)
throws opennlp.common.unify.UnifyFailure
- Specified by:
unifyCheck
in interface opennlp.common.unify.Unifiable
opennlp.common.unify.UnifyFailure
unify
public java.lang.Object unify(java.lang.Object u,
opennlp.common.unify.Substitution sub)
throws opennlp.common.unify.UnifyFailure
- Specified by:
unify
in interface opennlp.common.unify.Unifiable
opennlp.common.unify.UnifyFailure
fill
public java.lang.Object fill(opennlp.common.unify.Substitution sub)
throws opennlp.common.unify.UnifyFailure
- Specified by:
fill
in interface opennlp.common.unify.Unifiable
opennlp.common.unify.UnifyFailure
inherit
public opennlp.common.unify.FeatureStructure inherit(opennlp.common.unify.FeatureStructure fs)
- Specified by:
inherit
in interface opennlp.common.unify.FeatureStructure
getIndex
public int getIndex()
- Specified by:
getIndex
in interface opennlp.common.unify.FeatureStructure
setIndex
public void setIndex(int index)
- Specified by:
setIndex
in interface opennlp.common.unify.FeatureStructure
getInheritsFrom
public int getInheritsFrom()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashString
public java.lang.String hashString(java.util.Map varMap)
- Returns a hash string using the given map from vars to int strings.
Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.