public final class Extractor extends Object
| Modifier and Type | Field and Description |
|---|---|
DX |
d0 |
DX |
d2lp |
DX |
d2pp |
DX |
d2pw |
DX |
d3lp |
protected static String |
DIR |
protected static String |
DIST |
DX |
dl1 |
DX |
dl2 |
DX |
dlf |
DX |
dr |
DX |
dw |
DX |
dwp |
DX |
dwr |
DX |
dwwp |
static String |
END |
static String |
LA |
Long2IntInterface |
li |
static int |
maxForm |
protected static String |
MID |
static String |
POS |
static String |
RA |
static String |
REL |
static int |
s_child |
static int |
s_dir |
static int |
s_dist |
static int |
s_feat |
static int |
s_lpath |
static int |
s_pos |
static int |
s_rel |
static int |
s_rel1 |
static int |
s_spath |
boolean |
s_stack |
static int |
s_type |
static int |
s_word |
static String |
STR |
protected static String |
TYPE |
| Constructor and Description |
|---|
Extractor(Long2IntInterface li,
boolean stack,
int what) |
| Modifier and Type | Method and Description |
|---|---|
int |
basic(short[] pposs,
int p,
int d,
IFV f) |
void |
compare(Instances is,
int ic,
short[] pos,
short[] heads,
short[] types,
Cluster cluster,
F2SF f,
DataFES x) |
static float |
encode3(short[] pos,
short[] heads,
short[] types,
DataFES d2) |
static float |
encode3(short[] pos,
short[] heads,
short[] types,
DataFES d2,
float[] scores) |
FV |
encodeCat(Instances is,
int ic,
short[] pposs,
int[] forms,
int[] lemmas,
short[] heads,
short[] types,
short[][] feats,
Cluster cluster,
FV f) |
int |
firstm(Instances is,
int i,
int prnt,
int dpnt,
int label,
Cluster cluster,
long[] f) |
void |
init() |
static void |
initFeatures()
Initialize the features.
|
static void |
initStat(int what) |
static int |
leftmostLeft(short[] heads,
int head,
int min) |
static int |
rightmostRight(short[] heads,
int head,
int max) |
short[] |
searchLabel(Instances is,
int ic,
short[] pposs,
int[] forms,
int[] lemmas,
short[] heads,
short[] types,
short[][] feats,
Cluster cluster,
IFV f) |
int |
second(Instances is,
int i,
int p,
int d,
int x,
int label,
Cluster cluster,
long[] f) |
public static int s_rel
public static int s_word
public static int s_type
public static int s_dir
public static int s_dist
public static int s_feat
public static int s_child
public static int s_spath
public static int s_lpath
public static int s_pos
public static int s_rel1
public final DX d0
public final DX dl1
public final DX dl2
public final DX dwr
public final DX dr
public final DX dwwp
public final DX dw
public final DX dwp
public final DX dlf
public final DX d3lp
public final DX d2lp
public final DX d2pw
public final DX d2pp
public final Long2IntInterface li
public boolean s_stack
public static final String REL
public static final String END
public static final String STR
public static final String LA
public static final String RA
protected static final String TYPE
protected static final String DIR
public static final String POS
protected static final String DIST
protected static final String MID
public static int maxForm
public Extractor(Long2IntInterface li, boolean stack, int what)
public static void initStat(int what)
public void init()
public int basic(short[] pposs,
int p,
int d,
IFV f)
public int firstm(Instances is, int i, int prnt, int dpnt, int label, Cluster cluster, long[] f)
public int second(Instances is, int i, int p, int d, int x, int label, Cluster cluster, long[] f)
public FV encodeCat(Instances is, int ic, short[] pposs, int[] forms, int[] lemmas, short[] heads, short[] types, short[][] feats, Cluster cluster, FV f)
public void compare(Instances is, int ic, short[] pos, short[] heads, short[] types, Cluster cluster, F2SF f, DataFES x)
public short[] searchLabel(Instances is, int ic, short[] pposs, int[] forms, int[] lemmas, short[] heads, short[] types, short[][] feats, Cluster cluster, IFV f)
public static float encode3(short[] pos,
short[] heads,
short[] types,
DataFES d2)
public static float encode3(short[] pos,
short[] heads,
short[] types,
DataFES d2,
float[] scores)
public static int rightmostRight(short[] heads,
int head,
int max)
public static int leftmostLeft(short[] heads,
int head,
int min)
public static void initFeatures()
maxFeatures - Copyright © 2013. All rights reserved.