Class AnnotatorPerformanceTester


  • public class AnnotatorPerformanceTester
    extends java.lang.Object
    AnnotatorPerfTester is a helper class to execute annotator performance tests. The performance test results are returned as PerformanceTestResultImpl object.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PerformanceTestResult runPerformanceTest​(boolean repeatSingle, int numsToRun, java.io.File taeDescFilePath, java.io.File testFileDir, java.lang.String dataPath, boolean doWarmup)
      runs an annotator performance test
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnnotatorPerformanceTester

        public AnnotatorPerformanceTester()
    • Method Detail

      • runPerformanceTest

        public static PerformanceTestResult runPerformanceTest​(boolean repeatSingle,
                                                               int numsToRun,
                                                               java.io.File taeDescFilePath,
                                                               java.io.File testFileDir,
                                                               java.lang.String dataPath,
                                                               boolean doWarmup)
                                                        throws java.lang.Exception
        runs an annotator performance test
        Parameters:
        repeatSingle - if true, every document is process "numsToRun" times before the next document is processed. If false, all documents are processed and this is repeated "numsToRun" times.
        numsToRun - repeat count for the input documents
        taeDescFilePath - ae descriptor - absolute file path
        testFileDir - test file directory
        dataPath - ae datapath
        doWarmup - do warum for analysis engine - runs an short english sample document
        Returns:
        PerformanceTestResult - returns the performance test results
        Throws:
        java.lang.Exception - passthru