|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.trees.UnnamedDependency
public class UnnamedDependency
An individual dependency between a head and a dependent. The head and dependent are represented as a Label. For example, these can be a Word or a WordTag. If one wishes the dependencies to preserve positions in a sentence, then each can be a LabeledConstituent.
| Field Summary | |
|---|---|
protected java.lang.String |
dependentText
|
protected java.lang.String |
regentText
|
| Constructor Summary | |
|---|---|
UnnamedDependency(Label regent,
Label dependent)
|
|
UnnamedDependency(java.lang.String regent,
java.lang.String dependent)
|
|
| Method Summary | |
|---|---|
DependencyFactory |
dependencyFactory()
Provide a factory for this kind of dependency |
Label |
dependent()
Describes the dependent (argument/modifier) of the dependency relation. |
boolean |
equals(java.lang.Object o)
|
boolean |
equalsIgnoreName(java.lang.Object o)
Are two dependencies equal if you ignore the dependency name. |
static DependencyFactory |
factory()
|
protected java.lang.String |
getText(Label label)
|
Label |
governor()
Describes the governor (regent/head) of the dependency relation. |
int |
hashCode()
|
java.lang.Object |
name()
Names the type of dependency (subject, instrument, ...). |
java.lang.String |
toString()
|
java.lang.String |
toString(java.lang.String format)
Provide different printing options via a String keyword. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String regentText
protected final java.lang.String dependentText
| Constructor Detail |
|---|
public UnnamedDependency(java.lang.String regent,
java.lang.String dependent)
public UnnamedDependency(Label regent,
Label dependent)
| Method Detail |
|---|
public Label governor()
Dependency
governor in interface Dependency<Label,Label,java.lang.Object>public Label dependent()
Dependency
dependent in interface Dependency<Label,Label,java.lang.Object>public java.lang.Object name()
Dependency
name in interface Dependency<Label,Label,java.lang.Object>protected java.lang.String getText(Label label)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean equalsIgnoreName(java.lang.Object o)
Dependency
equalsIgnoreName in interface Dependency<Label,Label,java.lang.Object>o - The thing to compare against ignoring name
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.lang.String format)
toString in interface Dependency<Label,Label,java.lang.Object>format - A format string, either "xml" or you get the default
public DependencyFactory dependencyFactory()
Dependency
dependencyFactory in interface Dependency<Label,Label,java.lang.Object>public static DependencyFactory factory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||