Package com.clearnlp.classification.vector

Examples of com.clearnlp.classification.vector.SparseFeatureVector.trimToSize()


        else
          sparse.addFeature(index);
      }
    }
   
    sparse.trimToSize();
    return sparse;
  }
 
  /** @return {@code true} if the specific feature index is within the range of this model. */
  public boolean isValidFeature(int featureIndex)
View Full Code Here


        else
          sparse.addFeature(index);
      }
    }
   
    sparse.trimToSize();
    return sparse;
  }
 
  /** @return {@code true} if the specific feature index is within the range of this model. */
  public boolean isValidFeature(int featureIndex)
View Full Code Here

        else
          sparse.addFeature(index);
      }
    }
   
    sparse.trimToSize();
    return sparse;
  }
 
  public StringFeatureVector trimFeatures(StringFeatureVector oVector, String label, double threshold)
  {
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.