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 {
3838
3939
4040
41- String filePath = "./paperdata/ctb6-seg/work/ctb_三列式结果_0.txt" ;
41+ // String filePath = "./paperdata/ctb6-seg/work/ctb_三列式结果_0.txt";
4242String 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" ;
4444// String dictpath = "D:\\项目\\9.评测\\NLPCC2015分词\\data21_No_0\\all.dict";
4545
4646// filePath = "./example-data/sequence/seq.res";
4747
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 ]);
5656
5757}
5858
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public static void tearDownAfterClass() throws Exception {
3939@ Test
4040public void test () {
4141System .out .println (label .lookupIndex (PartOfSpeech .人称代词 .name ()));
42- System .out .println (label .lookupIndex ("人称 " ));
42+ System .out .println (label .lookupIndex ("人称代词 " ));
4343}
4444
4545}
You can’t perform that action at this time.
0 commit comments