Package cc.mallet.types

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


    this(fieldAlph, valueAlph);
    for (int i = 0; i < vals.length; i++) {
      AugmentableFeatureVector afv = new AugmentableFeatureVector(valueAlph, false);
      for (int j = 1; j < vals[i].length; j++)
        afv.add(valueAlph.lookupIndex(vals[i][j]), 1.0);
      field2values.put(fieldAlph.lookupIndex(vals[i][0]), afv.toFeatureVector());
    }
  }
 
  public FeatureVector values (String field) {
    return values(fieldAlph.lookupIndex(field));
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.