Examples of keepTopNAttributesLLR()


Examples of com.digitalpebble.classification.Learner.keepTopNAttributesLLR()

    RAMTrainingCorpus subjectiveCorpus = getCorpus(fileSubj,"subjective",creator);
    RAMTrainingCorpus objectiveCorpus = getCorpus(fileObj,"objective",creator);
    subjectiveCorpus.addAll(objectiveCorpus);
   
    // filter some of the attributes out based on their LLR score
    creator.keepTopNAttributesLLR(2000);
   
    // prune terms
    // creator.pruneTermsDocFreq(2,subjectiveCorpus.size());
   
    long l0 = System.currentTimeMillis();
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.