Package | Description |
---|---|
edu.ucla.sspace.dependency | |
edu.ucla.sspace.text | |
edu.ucla.sspace.wordsi | |
edu.ucla.sspace.wordsi.psd | |
edu.ucla.sspace.wordsi.semeval |
Modifier and Type | Class and Description |
---|---|
class |
SimpleDependencyTreeNode
A default implementation of a
DependencyTreeNode that allows
mutating access to the list of neighbors. |
Modifier and Type | Method and Description |
---|---|
DependencyTreeNode |
SimpleDependencyRelation.dependentNode()
Returns the dependent node that is related to the head node.
|
DependencyTreeNode |
DependencyRelation.dependentNode()
Returns the dependent node that is related to the head node.
|
DependencyTreeNode |
SimpleDependencyPath.first()
Returns the first node in the path, which is closest to the root.
|
DependencyTreeNode |
DependencyPath.first()
Returns the first node in the path, which is closest to the root.
|
DependencyTreeNode |
SimpleDependencyPath.getNode(int position)
Returns the node location at the specified position along the path.
|
DependencyTreeNode |
DependencyPath.getNode(int position)
Returns the node location at the specified position along the path.
|
DependencyTreeNode |
SimpleDependencyRelation.headNode()
Returns the head node on which the second node has dependent relation.
|
DependencyTreeNode |
DependencyRelation.headNode()
Returns the head node on which the second node has dependent relation.
|
DependencyTreeNode |
SimpleDependencyPath.last()
Returns the last node in the path, which is furthest from the root.
|
DependencyTreeNode |
DependencyPath.last()
Returns the last node in the path, which is furthest from the root.
|
DependencyTreeNode[] |
DependencyExtractor.readNextTree(BufferedReader reader)
Reads the next dependency-parse tree from the reader, returning an array
of all the nodes in the tree.
|
DependencyTreeNode[] |
CoNLLDependencyExtractor.readNextTree(BufferedReader reader)
Extracts a dependency parse tree from the provided reader.
|
DependencyTreeNode[] |
DependencyTreeTransform.transform(DependencyTreeNode[] tree)
Transforms the
DependencyRelation links within a series of DependencyTreeNode s. |
DependencyTreeNode[] |
ConjunctionTransform.transform(DependencyTreeNode[] dependencyTree)
Transforms the
DependencyRelation links within a series of DependencyTreeNode s. |
Modifier and Type | Method and Description |
---|---|
DependencyTreeNode[] |
DependencyTreeTransform.transform(DependencyTreeNode[] tree)
Transforms the
DependencyRelation links within a series of DependencyTreeNode s. |
DependencyTreeNode[] |
ConjunctionTransform.transform(DependencyTreeNode[] dependencyTree)
Transforms the
DependencyRelation links within a series of DependencyTreeNode s. |
Constructor and Description |
---|
BreadthFirstPathIterator(DependencyTreeNode startNode)
Creates a new iterator over all the paths starting at the provided index.
|
BreadthFirstPathIterator(DependencyTreeNode startNode,
int maxPathLength)
Creates a new iterator over all the paths starting at the provided index
that will only return paths up to the specified maximum length.
|
DependencyIterator(DependencyTreeNode startNode,
DependencyRelationAcceptor acceptor,
int maxPathLength)
Creates a new
DependencyIterator that will return all DependencyPath s rooted at the term with index startTerm . |
FilteredDependencyIterator(DependencyTreeNode startNode,
DependencyPathAcceptor acceptor)
Creates a new
DependencyIterator that will return all DependencyPath instances rooted at startNode that are validated
by the provided acceptor. |
FilteredDependencyIterator(DependencyTreeNode startNode,
DependencyPathAcceptor acceptor,
int maxPathLength)
Creates a new
DependencyIterator that will return all DependencyPath instances rooted at startNode that are validated
by the provided acceptor and whose length are under the maximum length |
SimpleDependencyRelation(DependencyTreeNode headNode,
String relation,
DependencyTreeNode dependent)
Creates a
SimpleDependencyRelation . |
Modifier and Type | Method and Description |
---|---|
DependencyTreeNode[] |
ParsedDocument.parsedDocument()
Returns the dependency tree of the next document as a sequence of
DependencyTreeNode instances. |
DependencyTreeNode[] |
LabeledParsedStringDocument.parsedDocument()
Returns the dependency tree of the next document as a sequence of
DependencyTreeNode instances. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
DependencyContextExtractor.acceptWord(DependencyTreeNode focusNode,
String contextHeader,
Wordsi wordsi)
Returns true if
Wordsi should generate a context vector for
focusWord . |
SparseDoubleVector |
WordOccrrenceDependencyContextGenerator.generateContext(DependencyTreeNode[] tree,
int focusIndex)
Returns a
SparseDoubleVector that represents the context composed
of the set of prevWords before the focus word and the set of
nextWords after the focus word. |
SparseDoubleVector |
AbstractOccurrenceDependencyContextGenerator.generateContext(DependencyTreeNode[] tree,
int focusIndex)
Returns a
SparseDoubleVector that represents the context composed
of the set of prevWords before the focus word and the set of
nextWords after the focus word. |
SparseDoubleVector |
SelPrefDependencyContextGenerator.generateContext(DependencyTreeNode[] tree,
int focusIndex)
Returns a
SparseDoubleVector that represents the context composed
of the set of prevWords before the focus word and the set of
nextWords after the focus word. |
SparseDoubleVector |
DependencyContextGenerator.generateContext(DependencyTreeNode[] tree,
int focusIndex)
Returns a
SparseDoubleVector that represents the context composed
of the set of prevWords before the focus word and the set of
nextWords after the focus word. |
SparseDoubleVector |
RandomIndexingDependencyContextGenerator.generateContext(DependencyTreeNode[] tree,
int focusIndex)
Returns a
SparseDoubleVector that represents the context composed
of the set of prevWords before the focus word and the set of
nextWords after the focus word. |
protected abstract String |
AbstractOccurrenceDependencyContextGenerator.getFeature(DependencyTreeNode node,
int dist)
Returns a string representing the
DependencyTreeNode which is
dist nodes away from the focus word currently being processed. |
protected String |
PartOfSpeechDependencyContextGenerator.getFeature(DependencyTreeNode node,
int index)
Returns a string with the node's word plus it's part of speech, with a
hyphen between the two.
|
protected String |
OccurrenceDependencyContextGenerator.getFeature(DependencyTreeNode node,
int index)
Returns a string with the node's word plus it's distance from the focus
word, with a hyphen between the two.
|
protected String |
OrderingDependencyContextGenerator.getFeature(DependencyTreeNode node,
int index)
Returns a string with the node's word plus it's distance from the focus
word, with a hyphen between the two.
|
protected String |
DependencyContextExtractor.getPrimaryKey(DependencyTreeNode focusNode)
Returns the token for the primary key, i.e.
|
protected String |
DependencyContextExtractor.getSecondaryKey(DependencyTreeNode focusNode,
String contextHeader)
Returns the token for the secondary key.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
PseudoWordDependencyContextExtractor.acceptWord(DependencyTreeNode focusNode,
String contextHeader,
Wordsi wordsi)
Returns true if
focusWord is a known pseudo word. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
SemEvalDependencyContextExtractor.acceptWord(DependencyTreeNode focusNode,
String contextHeader,
Wordsi wordsi)
Returns true if the
focusWord equals the contextHeader . |
protected String |
SemEvalDependencyContextExtractor.getSecondaryKey(DependencyTreeNode focusNode,
String contextHeader)
Returns the word of the
focusNode |
Copyright © 2012. All Rights Reserved.