Package com.clearnlp.component.evaluation

Examples of com.clearnlp.component.evaluation.AbstractEval.clear()


      currOutput = process(developFiles, reader, component, null, flag, -1);
     
      eval = component.getEval();
      currScore = eval.getAccuracies()[0];
      LOG.info(String.format("%2d: %s\n", iter, eval.toString()));
      eval.clear();
     
      if (bestScore < currScore)
      {
        bestWeights = model.cloneWeights();
        bestScore   = currScore;
View Full Code Here


    List<String> output = process(developFiles, reader, component, null, flag, -1);
   
    AbstractEval eval = component.getEval();
    double score = eval.getAccuracies()[0];
    LOG.info(String.format("%s\n", eval.toString()));
    eval.clear();
   
    return new ObjectDoublePair<List<String>>(output, score);
  }
 
  protected void printOutput(String[] developFiles, List<String> output, int boot)
View Full Code Here

        tree.setPOSTags((String[])goldLabels);
      }
     
      System.out.printf("%2d: %s\n", iter++, eval.toString());
      currScore = eval.getAccuracies()[0];
      eval.clear();
    }
    while (prevScore < currScore);
   
    s_model.setWeights(prevWeights);
  }
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.