public class RNNCoreAnnotations extends 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 predicted class.
|
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(Tree tree) |
static double |
getPredictionError(Tree tree) |
static org.ejml.simple.SimpleMatrix |
getPredictions(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 int getPredictedClass(Tree tree)
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)