Package com.digitalpebble.classification.util.scorers

Examples of com.digitalpebble.classification.util.scorers.AttributeScorer


            throws IOException {
        // load the corpus + the lexicon
        // load the lexicon and the raw file
        Lexicon lexicon = new Lexicon(lexiconF);
        FileTrainingCorpus corpus = new FileTrainingCorpus(new File(raw));
        AttributeScorer scorer = logLikelihoodAttributeScorer.getScorer(corpus,
                lexicon);
    }
View Full Code Here


        if (keepNBestAttributes != -1) {
            // double scores[] = logLikelihoodAttributeFilter.getScores(ftc,
            // lexicon);
            // lexicon.setLogLikelihoodRatio(scores);
            // lexicon.keepTopNAttributesLLR(keepNBestAttributes);
            AttributeScorer scorer = logLikelihoodAttributeScorer.getScorer(
                    ftc, lexicon);
            lexicon.setAttributeScorer(scorer);
            lexicon.applyAttributeFilter(scorer, keepNBestAttributes);
        } else {
            // apply the filters on the Lexicon
View Full Code Here

    if (keepNBestAttributes != -1) {
      // double scores[] = logLikelihoodAttributeFilter.getScores(corpus,
      // this.lexicon);
      // this.lexicon.setLogLikelihoodRatio(scores);
      // this.lexicon.keepTopNAttributesLLR(keepNBestAttributes);
      AttributeScorer scorer = logLikelihoodAttributeScorer.getScorer(
          corpus, lexicon);
      this.lexicon.setAttributeScorer(scorer);
      this.lexicon.applyAttributeFilter(scorer, keepNBestAttributes);
    }
    // saves the lexicon
View Full Code Here

TOP

Related Classes of com.digitalpebble.classification.util.scorers.AttributeScorer

Copyright © 2018 www.massapicom. 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.