Extractor.java
1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
*
*/
package extractors;
import is2.data.Cluster;
import is2.data.DataF;
import is2.data.FV;
import is2.data.IFV;
import is2.data.Instances;
/**
* @author Dr. Bernd Bohnet, 29.04.2011
*
*
*/
public interface Extractor {
/**
* Initializes the Extractor general parts
*/
public void initStat();
/**
* Initializes the Extractor specific parts
*/
public void init();
public int basic(short[] pos, int[] forms, int w1, int w2, Cluster cluster, IFV f);
public void firstm(Instances is, int i, int w1, int w2, int j, Cluster cluster, long[] svs);
public void siblingm(Instances is, int i, short[] pos, int[] forms,
int[] lemmas, short[][] feats, int w1, int w2, int g, int j,
Cluster cluster, long[] svs, int n);
public void gcm(Instances is, int i, int w1, int w2, int g, int j, Cluster cluster, long[] svs);
public int getType();
public FV encodeCat(Instances is, int n, short[] pos, int[] is2,
int[] is3, short[] heads, short[] labels, short[][] s, Cluster cl,
FV pred);
public void setMaxForm(int integer);
/**
* @return
*/
public int getMaxForm();
public float encode3(short[] pos, short[] heads, short[] labs, DataF x);
}