Examples of toFeatureIndexSequence()


Examples of cc.mallet.types.FeatureSequence.toFeatureIndexSequence()

    double[] weights = new double[4];
    fs.addFeatureWeightsTo (weights);
    assertTrue (weights[1] == 1.0);

    fs.add (dict.lookupIndex ("bear"));
    int[] feats = fs.toFeatureIndexSequence();
    assertTrue (feats[0] == 0);
    assertTrue (feats[1] == 1);
    assertTrue (feats[2] == 2);
    assertTrue (feats[3] == 3);
    assertTrue (feats[4] == 1);
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.