Package com.clearnlp.classification.train

Examples of com.clearnlp.classification.train.StringTrainSpace


  {
    StringTrainSpace[] spaces = new StringTrainSpace[size];
    int i;
   
    for (i=0; i<size; i++)
      spaces[i] = new StringTrainSpace(false, xml.getLabelCutoff(0), xml.getFeatureCutoff(0));
   
    return spaces;
  }
View Full Code Here


 
  // ============================= classification =============================
 
  protected StringTrainSpace mergeTrainSpaces(List<StringTrainSpace> spaces, int labelCutoff, int featureCutoff)
  {
    StringTrainSpace space;
   
    if (spaces.size() == 1)
    {
      space = spaces.get(0);
    }
    else
    {
      System.out.println("Merging training instances:");
      space = new StringTrainSpace(false, labelCutoff, featureCutoff);
     
      for (StringTrainSpace s : spaces)
      {
        space.appendSpace(s);
        System.out.print(".");
        s.clear();
      }
     
      System.out.println();     
View Full Code Here

TOP

Related Classes of com.clearnlp.classification.train.StringTrainSpace

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.