public class BuildBinarizedDataset
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
extractLabels(java.util.Map<Pair<java.lang.Integer,java.lang.Integer>,java.lang.String> spanToLabels,
java.util.List<HasWord> tokens,
java.lang.String line) |
static void |
main(java.lang.String[] args)
Turns a text file into trees for use in a RNTN classifier such as
the treebank used in the Sentiment project.
|
static void |
setPredictedLabels(Tree tree) |
static boolean |
setSpanLabel(Tree tree,
Pair<java.lang.Integer,java.lang.Integer> span,
java.lang.String value) |
static void |
setUnknownLabels(Tree tree,
java.lang.Integer defaultLabel)
Sets all of the labels on a tree to the given default value.
|
public static void setUnknownLabels(Tree tree, java.lang.Integer defaultLabel)
public static void setPredictedLabels(Tree tree)
public static void extractLabels(java.util.Map<Pair<java.lang.Integer,java.lang.Integer>,java.lang.String> spanToLabels, java.util.List<HasWord> tokens, java.lang.String line)
public static boolean setSpanLabel(Tree tree, Pair<java.lang.Integer,java.lang.Integer> span, java.lang.String value)
public static void main(java.lang.String[] args)
1 Today is not a good day.
3 good
3 good day
3 a good day
(next block starts here)
-parserModel
flag. Specify an input file
with -input
.