|
|||||||||
| 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 String |
dependentText
|
protected String |
regentText
|
| Constructor Summary | |
|---|---|
UnnamedDependency(Label regent,
Label dependent)
|
|
UnnamedDependency(String regent,
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(Object o)
|
boolean |
equalsIgnoreName(Object o)
Are two dependencies equal if you ignore the dependency name. |
static DependencyFactory |
factory()
|
protected String |
getText(Label label)
|
Label |
governor()
Describes the governor (regent/head) of the dependency relation. |
int |
hashCode()
|
Object |
name()
Names the type of dependency (subject, instrument, ...). |
String |
toString()
|
String |
toString(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 String regentText
protected final String dependentText
| Constructor Detail |
|---|
public UnnamedDependency(String regent,
String dependent)
public UnnamedDependency(Label regent,
Label dependent)
| Method Detail |
|---|
public Label governor()
Dependency
governor in interface Dependency<Label,Label,Object>public Label dependent()
Dependency
dependent in interface Dependency<Label,Label,Object>public Object name()
Dependency
name in interface Dependency<Label,Label,Object>protected String getText(Label label)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objectpublic boolean equalsIgnoreName(Object o)
Dependency
equalsIgnoreName in interface Dependency<Label,Label,Object>o - The thing to compare against ignoring name
public String toString()
toString in class Objectpublic String toString(String format)
toString in interface Dependency<Label,Label,Object>format - A format string, either "xml" or you get the default
public DependencyFactory dependencyFactory()
Dependency
dependencyFactory in interface Dependency<Label,Label,Object>public static DependencyFactory factory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||