| Modifier and Type | Field and Description |
|---|---|
protected static String |
DIR |
protected static String |
DIST |
static String |
END |
protected static String |
FEAT |
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_spath |
static int |
s_type |
static int |
s_word |
static String |
STR |
protected static String |
TYPE |
| Constructor and Description |
|---|
ExtractorClusterStacked(Long2IntInterface li) |
| Modifier and Type | Method and Description |
|---|---|
int |
basic(short[] pposs,
int[] form,
int p,
int d,
Cluster cluster,
IFV f) |
float |
encode3(short[] pos,
short[] heads,
short[] types,
DataF d2) |
static float |
encode3(short[] pos,
short[] heads,
short[] types,
float[] edgesScores,
DataF d2)
Provide the scores of the edges
|
FV |
encodeCat(Instances is,
int ic,
short[] pposs,
int[] forms,
int[] lemmas,
short[] heads,
short[] types,
short[][] feats,
Cluster cluster,
FV f) |
IFV |
encodeCat2(Instances is,
int ic,
short[] pposs,
int[] forms,
int[] lemmas,
short[] heads,
short[] types,
short[][] feats,
Cluster cluster,
IFV f,
Long2IntInterface li) |
void |
firstm(Instances is,
int i,
int prnt,
int dpnt,
int label,
Cluster cluster,
long[] f) |
void |
gcm(Instances is,
int i,
int p,
int d,
int gc,
int label,
Cluster cluster,
long[] f) |
int |
getMaxForm() |
int |
getType() |
void |
init()
Initializes the Extractor specific parts
|
static void |
initFeatures()
Initialize the features.
|
void |
initStat()
Initializes the Extractor general parts
|
void |
setMaxForm(int max) |
void |
siblingm(Instances is,
int i,
short[] pos,
int[] forms,
int[] lemmas,
short[][] feats,
int prnt,
int d,
int sblng,
int label,
Cluster cluster,
long[] f,
int v) |
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 final Long2IntInterface li
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
protected static final String FEAT
public static int maxForm
public ExtractorClusterStacked(Long2IntInterface li)
public void initStat()
Extractorpublic void init()
Extractorpublic void firstm(Instances is, int i, int prnt, int dpnt, int label, Cluster cluster, long[] f)
public void gcm(Instances is, int i, int p, int d, int gc, int label, Cluster cluster, long[] f)
public void siblingm(Instances is, int i, short[] pos, int[] forms, int[] lemmas, short[][] feats, int prnt, int d, int sblng, int label, Cluster cluster, long[] f, int v)
public IFV encodeCat2(Instances is, int ic, short[] pposs, int[] forms, int[] lemmas, short[] heads, short[] types, short[][] feats, Cluster cluster, IFV f, Long2IntInterface li)
public FV encodeCat(Instances is, int ic, short[] pposs, int[] forms, int[] lemmas, short[] heads, short[] types, short[][] feats, Cluster cluster, FV f)
public float encode3(short[] pos,
short[] heads,
short[] types,
DataF d2)
public static float encode3(short[] pos,
short[] heads,
short[] types,
float[] edgesScores,
DataF d2)
pos - heads - types - edgesScores - d2 - public static void initFeatures()
maxFeatures - public void setMaxForm(int max)
setMaxForm in interface Extractorpublic int getMaxForm()
getMaxForm in interface ExtractorCopyright © 2013. All rights reserved.