Package com.clearnlp.classification.train

Examples of com.clearnlp.classification.train.StringTrainSpace


   
    LOG.debug("\n");
   
    mSize = lSpaces.get(0).length;
    spaces = new StringTrainSpace[mSize];
    StringTrainSpace sp;

    for (i=0; i<mSize; i++)
    {
      spaces[i] = lSpaces.get(0)[i];
     
      if ((size = lSpaces.size()) > 1)
      {
        LOG.info("Merging training instances:\n");
       
        for (j=1; j<size; j++)
        {
          spaces[i].appendSpace(sp = lSpaces.get(j)[i]);
          sp.clear();
          LOG.debug(".");
        LOG.debug("\n");
      }
    }
   
View Full Code Here


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

  {
    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

    switch (vectorType)
    {
    case AbstractTrainSpace.VECTOR_SPARSE:
      space = new SparseTrainSpace(hasWeight); break;
    case AbstractTrainSpace.VECTOR_STRING:
      space = new StringTrainSpace(hasWeight, labelCutoff, featureCutoff); break;
    }
   
    space.readInstances(UTInput.createBufferedFileReader(trainFile));
    space.build();
   
View Full Code Here

    switch (vectorType)
    {
    case AbstractTrainSpace.VECTOR_SPARSE:
      space = new SparseTrainSpace(hasWeight); break;
    case AbstractTrainSpace.VECTOR_STRING:
      space = new StringTrainSpace(hasWeight, labelCutoff, featureCutoff); break;
    }
   
    space.readInstances(UTInput.createBufferedFileReader(trainFile));
    space.build();
   
View Full Code Here

    switch (vectorType)
    {
    case AbstractTrainSpace.VECTOR_SPARSE:
      space = new SparseTrainSpace(hasWeight); break;
    case AbstractTrainSpace.VECTOR_STRING:
      space = new StringTrainSpace(hasWeight, labelCutoff, featureCutoff); break;
    }
   
    space.readInstances(UTInput.createBufferedFileReader(trainFile));
    space.build();
   
View Full Code Here

    switch (vectorType)
    {
    case AbstractTrainSpace.VECTOR_SPARSE:
      space = new SparseTrainSpace(hasWeight); break;
    case AbstractTrainSpace.VECTOR_STRING:
      space = new StringTrainSpace(hasWeight, labelCutoff, featureCutoff); break;
    }
   
    space.readInstances(UTInput.createBufferedFileReader(trainFile));
    space.build();
   
View Full Code Here

    switch (vectorType)
    {
    case AbstractTrainSpace.VECTOR_SPARSE:
      space = new SparseTrainSpace(hasWeight); break;
    case AbstractTrainSpace.VECTOR_STRING:
      space = new StringTrainSpace(hasWeight, labelCutoff, featureCutoff); break;
    }
   
    space.readInstances(UTInput.createBufferedFileReader(trainFile));
    space.build();
   
View Full Code Here

   
    LOG.debug("\n");
   
    mSize = lSpaces.get(0).length;
    spaces = new StringTrainSpace[mSize];
    StringTrainSpace sp;

    for (i=0; i<mSize; i++)
    {
      spaces[i] = lSpaces.get(0)[i];
     
      if ((size = lSpaces.size()) > 1)
      {
        LOG.info("Merging training instances:\n");
       
        for (j=1; j<size; j++)
        {
          spaces[i].appendSpace(sp = lSpaces.get(j)[i]);
          sp.clear();
          LOG.debug(".");
        LOG.debug("\n");
      }
    }
   
View Full Code Here

  {
    int i, size = xmls.length;
    StringTrainSpace[] spaces = new StringTrainSpace[size];
   
    for (i=0; i<size; i++)
      spaces[i] = new StringTrainSpace(false, xmls[i].getLabelCutoff(cIndex), xmls[i].getFeatureCutoff(cIndex));
   
    return spaces;
  }
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.