public final class Decoder extends Object
| Modifier and Type | Field and Description |
|---|---|
static ExecutorService |
executerService |
static boolean |
LAS |
static float |
NON_PROJECTIVITY_THRESHOLD
Threshold for rearrange edges non-projective
|
static long |
timeDecotder |
static long |
timeRearrange |
static boolean |
TRAINING |
| Modifier and Type | Method and Description |
|---|---|
static List<ParseNBest> |
decode(short[] pos,
DataF x,
boolean projective,
Extractor extractor)
Build a dependency tree based on the data
|
static int |
getError(ParseNBest parse,
Instances is,
int i,
boolean las) |
static int |
getGoldRank(List<ParseNBest> parses,
Instances is,
int i,
boolean las) |
static String |
getInfo() |
static int |
getSmallestError(List<ParseNBest> parses,
Instances is,
int i,
boolean las) |
static List<ParseNBest> |
rearrangeNBest(short[] pos,
short[] heads,
short[] labs,
DataF x,
Extractor extractor)
This is the parallel non-projective edge re-arranger
|
static List<ParseNBest> |
rearrangeNBestP(short[] pos,
short[] heads,
short[] labs,
DataF x,
Extractor extractor)
This is the parallel non-projective edge re-arranger
|
public static final boolean TRAINING
public static long timeDecotder
public static long timeRearrange
public static final boolean LAS
public static float NON_PROJECTIVITY_THRESHOLD
public static ExecutorService executerService
public static List<ParseNBest> decode(short[] pos, DataF x, boolean projective, Extractor extractor) throws InterruptedException
pos - part-of-speech tagsx - the dataprojective - projective or non-projectiveedges - the edgesInterruptedExceptionpublic static List<ParseNBest> rearrangeNBestP(short[] pos, short[] heads, short[] labs, DataF x, Extractor extractor) throws InterruptedException
pos - part-of-speech tagsheads - parent child relationlabs - edge labelsx - the dataedges - the existing edges defined by part-of-speech tagsInterruptedExceptionpublic static List<ParseNBest> rearrangeNBest(short[] pos, short[] heads, short[] labs, DataF x, Extractor extractor) throws InterruptedException
pos - part-of-speech tagsheads - parent child relationlabs - edge labelsx - the dataedges - the existing edges defined by part-of-speech tagsInterruptedExceptionpublic static String getInfo()
public static int getGoldRank(List<ParseNBest> parses, Instances is, int i, boolean las)
parses - is - i - public static int getSmallestError(List<ParseNBest> parses, Instances is, int i, boolean las)
public static int getError(ParseNBest parse, Instances is, int i, boolean las)
Copyright © 2013. All rights reserved.