Examples of PerformanceTestResult


Examples of org.apache.uima.test.junit_extension.PerformanceTestResult

  public void testEnglishProcessingTest() throws Exception {
    // get descriptor
    File descFile = JUnitExtension.getFile("WhitespaceTokenizer.xml");
    File testFileDir = JUnitExtension.getFile("perfTestFiles");
    // run performance test
    PerformanceTestResult result = AnnotatorPerformanceTester.runPerformanceTest(true, 10000, descFile, testFileDir,
            null, true);
    // get result file
    System.out.println(result);
  }
View Full Code Here

Examples of org.apache.uima.test.junit_extension.PerformanceTestResult

  public void testPerformanceSet1() throws Exception {
    // get descriptor
    File descFile = JUnitExtension.getFile("performanceTest/RegExAnnotPerf.xml");
    File testFileDir = JUnitExtension.getFile("performanceTest/fileSet1");
    // run performance test
    PerformanceTestResult result = AnnotatorPerformanceTester.runPerformanceTest(true, 10000, descFile, testFileDir,
            null, true);
    // get result file
    assertEquals(180000, result.getNumberOfCreatedAnnotations());
    System.out.println(result);
  }
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.