edu.stanford.nlp.trees
Class DeepTree
java.lang.Object
edu.stanford.nlp.trees.DeepTree
public class DeepTree
- extends java.lang.Object
A tree combined with a map from subtree to SimpleMatrix vectors.
- Author:
- Richard Socher
|
Field Summary |
static java.util.Comparator<DeepTree> |
DESCENDING_COMPARATOR
A comparator that can be used with Collections.sort() that puts
the highest scoring tree first |
double |
score
|
|
Constructor Summary |
DeepTree(Tree tree,
java.util.IdentityHashMap<Tree,org.ejml.simple.SimpleMatrix> vectors,
double score)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
score
public double score
DESCENDING_COMPARATOR
public static final java.util.Comparator<DeepTree> DESCENDING_COMPARATOR
- A comparator that can be used with Collections.sort() that puts
the highest scoring tree first
DeepTree
public DeepTree(Tree tree,
java.util.IdentityHashMap<Tree,org.ejml.simple.SimpleMatrix> vectors,
double score)
getTree
public Tree getTree()
setTree
public void setTree(Tree tree)
getVectors
public java.util.IdentityHashMap<Tree,org.ejml.simple.SimpleMatrix> getVectors()
setVectors
public void setVectors(java.util.IdentityHashMap<Tree,org.ejml.simple.SimpleMatrix> vectors)
getScore
public double getScore()
setScore
public void setScore(double score)
Stanford NLP Group