public class RNNCoreAnnotations
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RNNCoreAnnotations.GoldClass
The index of the correct class.
|
static class |
RNNCoreAnnotations.NodeVector
Used to denote the vector (distributed representation) at a particular node.
|
static class |
RNNCoreAnnotations.PredictedClass
Get the argmax of the class predictions.
|
static class |
RNNCoreAnnotations.PredictionError |
static class |
RNNCoreAnnotations.Predictions
Used to denote a vector of predictions at a particular node.
|
Modifier and Type | Method and Description |
---|---|
static int |
getGoldClass(Tree tree) |
static org.ejml.simple.SimpleMatrix |
getNodeVector(Tree tree)
Get the vector (distributed representation) at a particular node.
|
static int |
getPredictedClass(Label label)
Return as an int the predicted class.
|
static int |
getPredictedClass(Tree tree)
Return as an int the predicted class.
|
static double |
getPredictedClassProb(Label label)
Return as a double the probability of the predicted class.
|
static double |
getPredictionError(Tree tree) |
static org.ejml.simple.SimpleMatrix |
getPredictions(Tree tree) |
static java.util.List<java.lang.Double> |
getPredictionsAsStringList(Tree tree) |
static void |
setGoldClass(Tree tree,
int goldClass) |
static void |
setPredictionError(Tree tree,
double error) |
public static org.ejml.simple.SimpleMatrix getNodeVector(Tree tree)
tree
- The tree nodepublic static org.ejml.simple.SimpleMatrix getPredictions(Tree tree)
public static java.util.List<java.lang.Double> getPredictionsAsStringList(Tree tree)
public static int getPredictedClass(Tree tree)
public static int getPredictedClass(Label label)
public static double getPredictedClassProb(Label label)
public static int getGoldClass(Tree tree)
public static void setGoldClass(Tree tree, int goldClass)
public static double getPredictionError(Tree tree)
public static void setPredictionError(Tree tree, double error)