Examples of RegressionInfo


Examples of opennlp.ccg.test.RegressionInfo

      double logprobttotal = 0.0;
      int numsents = 0;
      for (File f : Regression.getXMLFiles(new File(tbfn))) {
            // load testfile
          System.out.println("Loading: " + f.getName());
            RegressionInfo rinfo = new RegressionInfo(grammar, f);
            // do each item
        for (int i=0; i < rinfo.numberOfItems(); i++) {
          TestItem item = rinfo.getItem(i);
          if (item.numOfParses == 0) continue;
          numsents++;
          if (verbose) System.out.println("scoring: " + item.sentence);
          else System.out.print(".");
          Sign sign = item.sign;
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.