public class TypedDependency extends java.lang.Object implements java.lang.Comparable<TypedDependency>, java.io.Serializable
TypedDependency is a relation between two words in a
GrammaticalStructure. Each TypedDependency
consists of a governor word, a dependent word, and a relation, which is
normally an instance of GrammaticalRelation.| Constructor and Description |
|---|
TypedDependency(GrammaticalRelation reln,
IndexedWord gov,
IndexedWord dep) |
TypedDependency(TypedDependency other) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TypedDependency tdArg) |
IndexedWord |
dep() |
boolean |
equals(java.lang.Object o) |
boolean |
extra() |
IndexedWord |
gov() |
int |
hashCode() |
GrammaticalRelation |
reln() |
void |
setDep(IndexedWord dep) |
void |
setExtra() |
void |
setGov(IndexedWord gov) |
void |
setReln(GrammaticalRelation reln) |
java.lang.String |
toString() |
java.lang.String |
toString(CoreLabel.OutputFormat format) |
public TypedDependency(GrammaticalRelation reln, IndexedWord gov, IndexedWord dep)
public TypedDependency(TypedDependency other)
public GrammaticalRelation reln()
public void setGov(IndexedWord gov)
public void setDep(IndexedWord dep)
public IndexedWord gov()
public IndexedWord dep()
public boolean extra()
public void setReln(GrammaticalRelation reln)
public void setExtra()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(CoreLabel.OutputFormat format)
public int compareTo(TypedDependency tdArg)
compareTo in interface java.lang.Comparable<TypedDependency>