Examples of evaluate()


Examples of net.sourceforge.temply.base.rules.TemplyFunction.evaluate()

        for (TemplyFunctionExpression functionExp : _functionFinder.find(in)) {
            TemplyFunction function = _project.getRepository().getFunction(functionExp.getName());
            if (function == null) {
                throw new RuntimeException("Cannot find function \"" + functionExp.getName() + "\".");
            }
            Object result = function.evaluate(_project, functionExp.getArguments());
            if (result == null) {
                return null;
            }
            in = _functionFinder.replace(in, functionExp, result.toString());
        }

Examples of opennlp.tools.chunker.ChunkerCrossValidator.evaluate()

    ChunkerCrossValidator validator = new ChunkerCrossValidator(
        params.getLang(), mlParams,
        listeners.toArray(new ChunkerEvaluationMonitor[listeners.size()]));
     
    try {
      validator.evaluate(sampleStream, params.getFolds());
    }
    catch (IOException e) {
      CmdLineUtil.printTrainingIoError(e);
      throw new TerminateToolException(-1);
    }

Examples of opennlp.tools.chunker.ChunkerEvaluator.evaluate()

    };

    monitor.startAndPrintThroughput();

    try {
      evaluator.evaluate(measuredSampleStream);
    } catch (IOException e) {
      System.err.println("failed");
      System.err.println("Reading test data error " + e.getMessage());
      throw new TerminateToolException(-1);
    } finally {

Examples of opennlp.tools.doccat.DoccatCrossValidator.evaluate()

      DoccatFactory factory = DoccatFactory.create(params.getFactory(),
          tokenizer, featureGenerators);
      validator = new DoccatCrossValidator(params.getLang(), mlParams,
          factory, listenersArr);

      validator.evaluate(sampleStream, params.getFolds());
    } catch (IOException e) {
      throw new TerminateToolException(-1,
          "IO error while reading training data or indexing data: "
              + e.getMessage(), e);
    } finally {

Examples of opennlp.tools.doccat.DocumentCategorizerEvaluator.evaluate()

    };

    monitor.startAndPrintThroughput();

    try {
      evaluator.evaluate(measuredSampleStream);
    } catch (IOException e) {
      System.err.println("failed");
      throw new TerminateToolException(-1, "IO error while reading test data: "
          + e.getMessage(), e);
    } finally {

Examples of opennlp.tools.namefind.TokenNameFinderCrossValidator.evaluate()

    }

    try {
      validator = new TokenNameFinderCrossValidator(params.getLang(),
          params.getType(), mlParams, featureGeneratorBytes, resources, listeners.toArray(new TokenNameFinderEvaluationMonitor[listeners.size()]));
      validator.evaluate(sampleStream, params.getFolds());
    } catch (IOException e) {
      CmdLineUtil.printTrainingIoError(e);
      throw new TerminateToolException(-1);
    } finally {
      try {

Examples of opennlp.tools.namefind.TokenNameFinderEvaluator.evaluate()

    };

    monitor.startAndPrintThroughput();

    try {
      evaluator.evaluate(measuredSampleStream);
    } catch (IOException e) {
      System.err.println("failed");
      System.err.println("Reading test data error " + e.getMessage());
      throw new TerminateToolException(-1);
    } finally {

Examples of opennlp.tools.parser.ParserEvaluator.evaluate()

    ParserEvaluator evaluator = new ParserEvaluator(parser);

    System.out.print("Evaluating ... ");
    try {
      evaluator.evaluate(sampleStream);
    }
    catch (IOException e) {
      System.err.println("failed");
      throw new TerminateToolException(-1, "IO error while reading test data: " + e.getMessage(), e);
    } finally {

Examples of opennlp.tools.postag.POSEvaluator.evaluate()

     
      ObjectStream<POSSample> sampleStream =
          POSTaggerTrainerTool.openSampleData("Test", testData, encoding);
     
      try {
        evaluator.evaluate(sampleStream);
      }
      catch (IOException e) {
        System.err.println("failed");
        System.err.println("Reading test data error " + e.getMessage());
        throw new TerminateToolException(-1);

Examples of opennlp.tools.postag.POSTaggerCrossValidator.evaluate()

      }

      validator = new POSTaggerCrossValidator(params.getLang(), mlParams,
          tagdict, params.getNgram(), missclassifiedListener);
     
      validator.evaluate(sampleStream, params.getFolds());
    } catch (IOException e) {
      CmdLineUtil.printTrainingIoError(e);
      throw new TerminateToolException(-1);
    } finally {
      try {
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.