File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed
main/java/org/fnlp/nlp/parser/dep/analysis
fnlp-train/src/main/java/org/fnlp/train/parsing Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -92,5 +92,8 @@ private void print(){
92
92
System .out .printf ("rate(UEM):\t %.8f\t total(sent):\t %d\n " , 1 - 1.0
93
93
* errsent / sent_sum , sent_sum );
94
94
}
95
+
96
+
97
+
95
98
96
99
}
Original file line number Diff line number Diff line change @@ -20,7 +20,5 @@ public static void setUpBeforeClass() throws Exception {
20
20
public static void tearDownAfterClass () throws Exception {
21
21
}
22
22
23
-
24
-
25
23
26
24
}
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public static void main(String[] args) throws Exception {
59
59
//处理测试数据
60
60
FNLPCorpus corpust = new FNLPCorpus ();
61
61
//读自有数据
62
- // corpust.read(datapath + "/FNLPDATA/WeiboFTB(v1.0)-test.dat", null);
62
+ corpust .read (datapath + "/FNLPDATA/WeiboFTB(v1.0)-test.dat" , null );
63
63
corpust .writeOne (testfile );
64
64
65
65
TreeSet <String > set2 = corpus .getAllRelations ();
Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ public static void main(String[] args) throws Exception {
31
31
32
32
33
33
JointParerTrainer trainer = new JointParerTrainer (model );
34
- int maxite = 50 ;
34
+ int maxite = 25 ;
35
35
float c = 0.01f ;
36
36
trainer .train (trainfile , maxite , c );
37
37
38
38
eval ();
39
39
40
40
bw .println ("优化" );
41
- float thres = 0.00001f ;
41
+ float thres = 1.0E-3f ;
42
42
bw .println (thres );
43
43
44
44
ModelOptimization op = new ModelOptimization (thres );
@@ -48,7 +48,7 @@ public static void main(String[] args) throws Exception {
48
48
/////////////////////////////////////////
49
49
50
50
bw .println ("优化" );
51
- thres = 0.001f ;
51
+ thres = 1.0E-2f ;
52
52
bw .println (thres );
53
53
op = new ModelOptimization (thres );
54
54
op .optimizeDep (model );
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public static void main(String[] args) throws Exception {
36
36
float c = 0.01f ;
37
37
trainer .train (allfile , maxite , c );
38
38
39
- float thres = 0.00001f ;
39
+ float thres = 1.0E-3f ;
40
40
ModelOptimization op = new ModelOptimization (thres );
41
41
op .optimizeDep (model );
42
42
You can’t perform that action at this time.
0 commit comments