Examples of ICasEvaluator


Examples of org.apache.uima.ruta.testing.evaluator.ICasEvaluator

            throws AnalysisEngineProcessException, CASException, IOException, SAXException,
            CoreException {
      // memento for prefs
      IPreferenceStore store = RutaAddonsPlugin.getDefault().getPreferenceStore();
      String factoryName = store.getString(TestingPreferenceConstants.EVALUATOR_FACTORY);
      ICasEvaluator evaluator = RutaAddonsPlugin.getCasEvaluatorFactoryById(factoryName)
              .createEvaluator();
      boolean includeSubtypes = store.getBoolean(TestingPreferenceConstants.INCLUDE_SUBTYPES);
      boolean useAllTypes = store.getBoolean(TestingPreferenceConstants.ALL_TYPES);

      CAS resultCas = evaluator.evaluate(goldCas, runCas, excludedTypes, includeSubtypes,
              useAllTypes);

      // store results
      IPath path2Test = td.getPath().removeLastSegments(1);
View Full Code Here

Examples of org.apache.uima.ruta.testing.evaluator.ICasEvaluator

                IPreferenceStore store = RutaAddonsPlugin.getDefault().getPreferenceStore();
                String factoryName = store.getString(TestingPreferenceConstants.EVALUATOR_FACTORY);
                boolean includeSubtypes = store.getBoolean(TestingPreferenceConstants.INCLUDE_SUBTYPES);
                boolean useAllTypes = store.getBoolean(TestingPreferenceConstants.ALL_TYPES);
               
                ICasEvaluator evaluator = RutaAddonsPlugin.getCasEvaluatorFactoryById(factoryName)
                        .createEvaluator();
                ArrayList<String> excludedTypes = new ArrayList<String>();
                CAS resultCas = evaluator.evaluate(testCas, inputCAS, excludedTypes, includeSubtypes, useAllTypes);
                document.setFMeasure(calculateF1(resultCas));
              }
            }
          } catch (Exception e) {
            RutaAddonsPlugin.error(e);
View Full Code Here

Examples of org.apache.uima.ruta.testing.evaluator.ICasEvaluator

            throws AnalysisEngineProcessException, CASException, IOException, SAXException,
            CoreException {
      // memento for prefs
      IPreferenceStore store = RutaAddonsPlugin.getDefault().getPreferenceStore();
      String factoryName = store.getString(TestingPreferenceConstants.EVALUATOR_FACTORY);
      ICasEvaluator evaluator = RutaAddonsPlugin.getCasEvaluatorFactoryById(factoryName)
              .createEvaluator();
      boolean includeSubtypes = store.getBoolean(TestingPreferenceConstants.INCLUDE_SUBTYPES);
      boolean useAllTypes = store.getBoolean(TestingPreferenceConstants.ALL_TYPES);

      CAS resultCas = evaluator.evaluate(goldCas, runCas, excludedTypes, includeSubtypes,
              useAllTypes);

      // store results
      IPath path2Test = td.getPath().removeLastSegments(1);
View Full Code Here

Examples of org.apache.uima.ruta.testing.evaluator.ICasEvaluator

          testCas = testCas.getView(viewCasName);
          runCas = runCas.getView(viewCasName);

          IPreferenceStore store = RutaAddonsPlugin.getDefault().getPreferenceStore();
          String factoryName = store.getString(TestingPreferenceConstants.EVALUATOR_FACTORY);
          ICasEvaluator evaluator = RutaAddonsPlugin.getCasEvaluatorFactoryById(factoryName)
                  .createEvaluator();

          ae.process(runCas);
          CAS resultCas = evaluator.evaluate(testCas, runCas, debugPage.getExcludedTypes());

          IPath path2Test = td.getPath().removeLastSegments(1);

          IPath estimatedTestPath = project.getFullPath().append(
                  RutaProjectUtils.getDefaultTestLocation());
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.