Examples of SeqEval


Examples of org.fnlp.ml.eval.SeqEval

  }

  private static void eval(SegTrain seg)
      throws UnsupportedEncodingException, FileNotFoundException,
      Exception, IOException {
    SeqEval ne;   
   
    File modelF = new File(model);
    bw.println("模型大小:"+modelF.length()/1000000.0);
   
    seg.testfile = testfile ;
    seg.output = output;
    seg.hasLabel = true;
    seg.test();
   
    ne = new SeqEval();
    ne.readOOV(dicfile);
    ne.read(output);
    String res = ne.calcByType();
    bw.println(res);
   
  }
View Full Code Here

Examples of org.fnlp.ml.eval.SeqEval

  }

  private static void eval(POSTrain pos)
      throws UnsupportedEncodingException, FileNotFoundException,
      Exception, IOException {
    SeqEval ne;   
   
    File modelF = new File(model);
    bw.println("模型大小:"+modelF.length()/1000000.0);
   
    pos.testfile = testfile ;
    pos.output = output;
    pos.hasLabel = true;
    pos.cl = null;
    pos.test();
   
    ne = new SeqEval();
    ne.NoSegLabel = true;
    ne.readOOV(dicfile);
    ne.read(output);
    String res = ne.calcByType2();
    bw.println(res);
   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.