Package | Description |
---|---|
org.deeplearning4j.models.rntn | |
org.deeplearning4j.text.corpora.treeparser | |
org.deeplearning4j.text.corpora.treeparser.transformer |
Modifier and Type | Method and Description |
---|---|
<T extends Tree> |
Tree.getLeaves()
Gets the leaves of the tree.
|
<T extends Tree> |
Tree.getLeaves(List<T> list)
Gets the leaves of the tree.
|
Modifier and Type | Method and Description |
---|---|
Tree |
Tree.ancestor(int height,
Tree root)
Returns the ancestor of the given tree
|
Tree |
Tree.clone() |
Tree |
Tree.firstChild() |
Tree |
Tree.lastChild() |
Tree |
Tree.parent() |
Tree |
Tree.parent(Tree root)
Returns the parent of the passed in tree via traversal
|
Modifier and Type | Method and Description |
---|---|
List<Tree> |
Tree.children() |
List<Tree> |
Tree.getChildren() |
Modifier and Type | Method and Description |
---|---|
Tree |
Tree.ancestor(int height,
Tree root)
Returns the ancestor of the given tree
|
int |
Tree.depth(Tree node)
Returns the distance between this node
and the specified subnode
|
void |
RNTN.forwardPropagateTree(Tree tree)
This is the method to call for assigning labels and node vectors
to the Tree.
|
org.nd4j.linalg.api.ndarray.INDArray |
RNTN.getClassWForNode(Tree node) |
org.nd4j.linalg.api.ndarray.INDArray |
RNTN.getINDArrayForNode(Tree node) |
org.nd4j.linalg.api.ndarray.INDArray |
RNTN.getWForNode(Tree node) |
Tree |
Tree.parent(Tree root)
Returns the parent of the passed in tree via traversal
|
void |
Tree.setParent(Tree parent) |
Modifier and Type | Method and Description |
---|---|
void |
Tree.connect(List<Tree> children)
Connects the given trees
and sets the parents of the children
|
void |
RNTNEval.eval(RNTN rntn,
List<Tree> trees) |
void |
RNTN.fit(List<Tree> trainingBatch)
Trains the network on this mini batch
|
List<org.nd4j.linalg.api.ndarray.INDArray> |
RNTN.output(List<Tree> trees)
output the prediction probabilities for each tree
|
List<Integer> |
RNTN.predict(List<Tree> trees)
output the top level labels for each tree
|
Constructor and Description |
---|
Tree(Tree tree)
Clone constructor (all but the children)
|
Tree(Tree parent,
List<String> tokens) |
Modifier and Type | Method and Description |
---|---|
static Tree |
TreeFactory.buildTree(org.cleartk.syntax.constituent.type.TreebankNode node)
Builds a tree recursively
adding the children as necessary
|
static Tree |
TreeFactory.buildTree(org.cleartk.syntax.constituent.type.TreebankNode node,
Pair<String,MultiDimensionalMap<Integer,Integer,String>> labels,
List<String> possibleLabels)
Builds a tree recursively
adding the children as necessary
|
Tree |
HeadWordFinder.findHead(Tree parentNode)
Finds the bottom most head
|
Tree |
HeadWordFinder.findHead2(Tree parentNode) |
static Tree |
TreeFactory.toTree(org.cleartk.syntax.constituent.type.TreebankNode node)
Converts a treebank node to a tree
|
static Tree |
TreeFactory.toTree(org.cleartk.syntax.constituent.type.TreebankNode node,
Pair<String,MultiDimensionalMap<Integer,Integer,String>> labels)
Converts a treebank node to a tree
|
Tree |
BinarizeTreeTransformer.transform(Tree t) |
Tree |
CollapseUnaries.transform(Tree tree) |
Modifier and Type | Method and Description |
---|---|
List<Tree> |
TreeVectorizer.getTrees(String sentences)
Vectorizes the passed in sentences
|
List<Tree> |
TreeParser.getTrees(String text)
Gets trees from text.
|
List<Tree> |
TreeParser.getTrees(String text,
SentencePreProcessor preProcessor)
Gets trees from text.
|
List<Tree> |
TreeVectorizer.getTreesWithLabels(String sentences,
List<String> labels)
Vectorizes the passed in sentences
|
List<Tree> |
TreeParser.getTreesWithLabels(String text,
List<String> labels)
Gets trees from text.
|
List<Tree> |
TreeVectorizer.getTreesWithLabels(String sentences,
String label,
List<String> labels)
Vectorizes the passed in sentences
|
List<Tree> |
TreeParser.getTreesWithLabels(String text,
String label,
List<String> labels)
Gets trees from text.
|
List<Tree> |
TreeIterator.next()
Returns the next element in the iteration.
|
Modifier and Type | Method and Description |
---|---|
Tree |
HeadWordFinder.findHead(Tree parentNode)
Finds the bottom most head
|
Tree |
HeadWordFinder.findHead2(Tree parentNode) |
Tree |
BinarizeTreeTransformer.transform(Tree t) |
Tree |
CollapseUnaries.transform(Tree tree) |
Modifier and Type | Method and Description |
---|---|
Tree |
TreeTransformer.transform(Tree t)
Applies a applyTransformToOrigin to a tree
|
Modifier and Type | Method and Description |
---|---|
Tree |
TreeTransformer.transform(Tree t)
Applies a applyTransformToOrigin to a tree
|
Copyright © 2014. All rights reserved.