|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.uzh.ifi.attempto.chartparser.Category
ch.uzh.ifi.attempto.chartparser.Terminal
public class Terminal
This class stands for a terminal category. Terminal categories consists only of a name and cannot have features. The names of terminal categories correspond to the tokens in the text to be parsed.
| Field Summary |
|---|
| Fields inherited from class ch.uzh.ifi.attempto.chartparser.Category |
|---|
featureMap, name, specialCategories |
| Constructor Summary | |
|---|---|
Terminal(java.lang.String name)
Creates a new terminal category. |
|
| Method Summary | |
|---|---|
boolean |
canUnify(Category c)
This method detects whether this category can unify with the given category. |
Category |
deepCopy()
Creates a deep copy of this category. |
boolean |
equals(java.lang.Object obj)
|
java.util.Set<java.lang.String> |
getFeatureNames()
Returns the used feature names within the feature map. |
java.util.Collection<StringRef> |
getFeatureValues()
Returns the used feature values within the feature map. |
protected java.lang.String |
getType()
This method returns the type of the category. |
int |
hashCode()
|
boolean |
isSimilar(Category c)
This methods checks whether two categories are similar. |
void |
skolemize()
Skolemizes the feature values of this category. |
boolean |
subsumes(Category c)
This method returns true if this category subsumes (in other words "is more general than") the given category, or false otherwise. |
java.lang.String |
toString()
|
void |
tryToUnify(Category c)
Tries to unify this category with another category. |
void |
unify(Category c)
Unifies this category with another category. |
| Methods inherited from class ch.uzh.ifi.attempto.chartparser.Category |
|---|
addNegFeatureMap, addPosFeatureMap, getFeature, getFeatureMap, getName, getNegFeatureMaps, getPosFeatureMaps, isSpecialCategory, setFeature, setFeature |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Terminal(java.lang.String name)
name - The name of the terminal category.| Method Detail |
|---|
protected java.lang.String getType()
Category
getType in class Category
public void unify(Category c)
throws UnificationFailedException
Category
unify in class Categoryc - The category to be unified with this category.
UnificationFailedException - If unification fails.
public void tryToUnify(Category c)
throws UnificationFailedException
Category
tryToUnify in class Categoryc - The category to be unified with this category.
UnificationFailedException - If unification fails.public boolean canUnify(Category c)
Category
canUnify in class Categoryc - The category for the unification check.
public boolean isSimilar(Category c)
Category
isSimilar in class Categoryc - The category for which similarity with this category should be checked.
public boolean subsumes(Category c)
Category
subsumes in class Categoryc - The category for which it is checked whether this category subsumes it.
public void skolemize()
Category
skolemize in class Categorypublic java.util.Set<java.lang.String> getFeatureNames()
Category
getFeatureNames in class Categorypublic java.util.Collection<StringRef> getFeatureValues()
Category
getFeatureValues in class Categorypublic Category deepCopy()
Category
deepCopy in class Categorypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class Categorypublic java.lang.String toString()
toString in class Category
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||