File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
fnlp-core/src/test/java/org/fnlp/ml Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -38,21 +38,21 @@ public void test() throws IOException {
38
38
39
39
40
40
41
- String filePath = "./paperdata/ctb6-seg/work/ctb_三列式结果_0.txt" ;
41
+ // String filePath = "./paperdata/ctb6-seg/work/ctb_三列式结果_0.txt";
42
42
String dictpath = "D:\\ 项目\\ 9.评测\\ NLPCC2015分词\\ data21_No_0\\ all.dict" ;
43
- // String filePath = "D:\\项目\\9.评测\\NLPCC2015分词\\data21_No_0\\testSeg.txt";
43
+ String filePath = "D:\\ 项目\\ 9.评测\\ NLPCC2015分词\\ data21_No_0\\ testSeg.txt" ;
44
44
// String dictpath = "D:\\项目\\9.评测\\NLPCC2015分词\\data21_No_0\\all.dict";
45
45
46
46
// filePath = "./example-data/sequence/seq.res";
47
47
48
- //读取评测结果文件,并输出到outputPath
49
- SeqEval ne1 ;
50
- ne1 = new SeqEval ();
51
- ne1 .readOOV (dictpath );
52
- ne1 .read (filePath );
53
- ne1 .NeEvl (null );
54
- double [] res = ne1 .calcPRF ();
55
- System .out .print (res [0 ] +" " + res [1 ]+" " +res [2 ]);
48
+ // //读取评测结果文件,并输出到outputPath
49
+ // SeqEval ne1;
50
+ // ne1 = new SeqEval();
51
+ // ne1.readOOV(dictpath);
52
+ // ne1.read(filePath);
53
+ //// ne1.NeEvl(null);
54
+ // double[] res = ne1.calcPRF();
55
+ // System.out.print(res[0] +" " + res[1]+" " +res[2]+" "+res[3 ]);
56
56
57
57
}
58
58
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public static void tearDownAfterClass() throws Exception {
39
39
@ Test
40
40
public void test () {
41
41
System .out .println (label .lookupIndex (PartOfSpeech .人称代词 .name ()));
42
- System .out .println (label .lookupIndex ("人称 " ));
42
+ System .out .println (label .lookupIndex ("人称代词 " ));
43
43
}
44
44
45
45
}
You can’t perform that action at this time.
0 commit comments