Package cc.mallet.types

Examples of cc.mallet.types.AugmentableFeatureVector.numLocations()


  public Instance pipe (Instance carrier)
  {
    AugmentableFeatureVector afv = (AugmentableFeatureVector)carrier.getData();
    double v;
    for (int i = afv.numLocations() - 1; i >= 0; i--) {
      v = afv.valueAtLocation (i);
      if (v >= 1)
        afv.setValueAtLocation (i, Math.log(v)+1);
    }
    return carrier;
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.