Examples of totalCount()


Examples of com.aliasi.classify.ConfusionMatrix.totalCount()

         }
        logger.info(sb.toString());
      }
     
    logger.info("Total Accuracy: " + nf.format(confMatrix.totalAccuracy()) );
      logger.info("Total Correct : " + confMatrix.totalCorrect() + " out of " + confMatrix.totalCount() );
    }
}
View Full Code Here

Examples of com.aliasi.classify.ConfusionMatrix.totalCount()

         }
        logger.info(sb.toString());
      }
     
    logger.info("Total Accuracy: " + nf.format(confMatrix.totalAccuracy()) );
      logger.info("Total Correct : " + confMatrix.totalCorrect() + " out of " + confMatrix.totalCount() );
    }
}
View Full Code Here

Examples of com.aliasi.classify.ConfusionMatrix.totalCount()

         }
        logger.info(sb.toString());
      }
     
    logger.info("Total Accuracy: " + nf.format(confMatrix.totalAccuracy()) );
      logger.info("Total Correct : " + confMatrix.totalCorrect() + " out of " + confMatrix.totalCount() );
    }
}
View Full Code Here

Examples of edu.stanford.nlp.stats.ClassicCounter.totalCount()

    for (Iterator it = nodeRules.keySet().iterator(); it.hasNext();) {
      ArrayList answers = new ArrayList();
      String label = (String) it.next();
      ClassicCounter cntr = (ClassicCounter) nodeRules.get(label);
      double support = (cntr.totalCount());
      System.out.println("Node " + label + " support is " + support);


      for (Iterator it2 = ((HashMap) leftRules.get(label)).keySet().iterator(); it2.hasNext();) {
        String sis = (String) it2.next();
View Full Code Here

Examples of edu.stanford.nlp.stats.ClassicCounter.totalCount()


      for (Iterator it2 = ((HashMap) leftRules.get(label)).keySet().iterator(); it2.hasNext();) {
        String sis = (String) it2.next();
        ClassicCounter cntr2 = (ClassicCounter) ((HashMap) leftRules.get(label)).get(sis);
        double support2 = (cntr2.totalCount());

        /* alternative 1: use full distribution to calculate score */
        double kl = Counters.klDivergence(cntr2, cntr);

        /* alternative 2: hold out test-context data to calculate score */
 
View Full Code Here

Examples of edu.stanford.nlp.stats.ClassicCounter.totalCount()

      }

      for (Iterator it2 = ((HashMap) rightRules.get(label)).keySet().iterator(); it2.hasNext();) {
        String sis = (String) it2.next();
        ClassicCounter cntr2 = (ClassicCounter) ((HashMap) rightRules.get(label)).get(sis);
        double support2 = (cntr2.totalCount());
        double kl = Counters.klDivergence(cntr2, cntr);
        String annotatedLabel = label + "=r=" + sis;
        System.out.println("KL(" + annotatedLabel + "||" + label + ") = " + nf.format(kl) + "\t" + "support(" + sis + ") = " + support2);
        answers.add(new Pair(annotatedLabel, new Double(kl * support2)));
        topScores.add(new Pair(annotatedLabel, new Double(kl * support2)));
 
View Full Code Here

Examples of org.archive.crawler.reporting.CrawlStatSnapshot.totalCount()

        CrawlStatSnapshot snapshot = stats.getSnapshot();

        Map<String,Long> totals = new LinkedHashMap<String,Long>();
        totals.put("downloadedUriCount", snapshot.downloadedUriCount);
        totals.put("queuedUriCount", snapshot.queuedUriCount);
        totals.put("totalUriCount", snapshot.totalCount());
        totals.put("futureUriCount", snapshot.futureUriCount);

        return totals;
    }
   
View Full Code Here

Examples of org.elasticsearch.search.facet.terms.TermsFacet.totalCount()

      assertThat(searchResponse.hits().totalHits(), equalTo(documentCount));

         TermsFacet facet = searchResponse.facets().facet("facet1");
      assertThat(facet.name(), equalTo("facet1"));
      assertThat(facet.entries().size(), equalTo(getFacetSize()));
      assertThat(facet.totalCount(),equalTo(fieldTokenCount));
      assertThat(facet.missingCount(),equalTo(1L)); // one missing doc.

      for (int term=maxTermCount()-getFacetSize()+1;term<=maxTermCount();term++) {
        int facet_pos = maxTermCount()-term;
       
View Full Code Here

Examples of org.elasticsearch.search.facet.terms.TermsFacet.totalCount()

         TermsFacet facet = searchResponse.facets().facet("facet1");
      logFacet(facet);
      assertThat(facet.name(), equalTo("facet1"));
      assertThat(facet.entries().size(), equalTo(facet_size));
         assertThat(facet.totalCount(),equalTo(fieldTokenCount));
      assertThat(facet.missingCount(),equalTo(1L)); // one missing doc.

      for (int term=maxTermCount()-facet_size+1;term<=maxTermCount();term++) {
        int facet_pos = maxTermCount()-term;
View Full Code Here

Examples of org.elasticsearch.search.facet.terms.TermsFacet.totalCount()

      assertThat(searchResponse.hits().totalHits(), equalTo(documentCount));

      TermsFacet facet = searchResponse.facets().facet("facet1");
      assertThat(facet.name(), equalTo("facet1"));
      assertThat(facet.entries().size(), equalTo(facet_size));
         assertThat(facet.totalCount(),equalTo(fieldTokenCount));
         assertThat(facet.missingCount(),equalTo(1L)); // one missing doc.
     
      int maxTermInFacet = maxTermCount()-2;

      for (int term=maxTermInFacet-facet_size+1;term<=maxTermInFacet-2;term++) {
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.