Package com.clearnlp.classification.model

Examples of com.clearnlp.classification.model.StringModelAD


  private StringModelAD[] getEmptyModels(int modelSize)
  {
    StringModelAD[] models = new StringModelAD[modelSize];
   
    int i; for (i=0; i<modelSize; i++)
      models[i] = new StringModelAD();
   
    return models;
  }
View Full Code Here


  protected void train(AbstractOnlineStatisticalComponent<? extends AbstractState> component, NodeList eTrains, int boot)
  {
    StringModelAD[] models = component.getModels();
    int modelSize = models.length;
    AbstractAlgorithm algorithm;
    StringModelAD model;
    int i, nIterations;
    Element eTrain;
   
    for (i=0; i<modelSize; i++)
    {
      eTrain = (Element)eTrains.item(i);
      model = models[i];
      model.build(getLabelCutoff(eTrain), getFeatureCutoff(eTrain), getRandomSeed(eTrain), true);
      model.printInfo(LOG);
     
      nIterations = getNumberOfIterations(eTrain, boot);
      algorithm = getAlgorithm(eTrain);
      trainOnline(model, algorithm, nIterations);
    }
View Full Code Here

  {
    StringModelAD[] models = component.getModels();
    ObjectDoublePair<List<String>> output = null;
    int modelSize = models.length;
    AbstractAlgorithm algorithm;
    StringModelAD model;
    Element eTrain;
    int i;
   
    for (i=0; i<modelSize; i++)
    {
      eTrain = (Element)eTrains.item(i);
      model = models[i];
      model.build(getLabelCutoff(eTrain), getFeatureCutoff(eTrain), getRandomSeed(eTrain), true);
      model.printInfo(LOG);
     
      algorithm = getAlgorithm(eTrain);
      output = developOnline(developFiles, reader, component, model, algorithm, bootstrapScore, flag);
    }
   
View Full Code Here

TOP

Related Classes of com.clearnlp.classification.model.StringModelAD

Copyright © 2018 www.massapicom. 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.