Package edu.gslis.ttg.clusters.clusterers

Examples of edu.gslis.ttg.clusters.clusterers.SimpleJaccardClusterer.cluster()


     
      // sweep through jaccard steps, calculating F1
      double maxF1 = 0;
      double maxF1Threshold = 1;
      for (double j = 1.0; j >= 0.0; j -= stepSize) { // for each jaccard threshold step
        Clusters clusters = clusterer.cluster(j);
       
        // all clusters are created now, get a finalized set of results
        Set<Long> allResults = new HashSet<Long>(seenResults.keySet());
        allResults.removeAll(clusters.getAllClusteredResults()); // allResults includes unclustered plus one representative from each cluster
        for (Cluster c : clusters) {
View Full Code Here


      client = new TrecSearchThriftClient(params.getParamValue(HOST_OPTION), testingPort, group, token);
      searcher = new SimpleSearcher(client, numResults);
      Map<Long, TResult> seenResults = searcher.search(query);
     
      SimpleJaccardClusterer clusterer = new SimpleJaccardClusterer(new ArrayList<TResult>(seenResults.values()));
      Clusters clusters = clusterer.cluster(averageThreshold);
     
      // all clusters are created now, get a finalized set of results
      Set<Long> allResults = new HashSet<Long>(seenResults.keySet());
      allResults.removeAll(clusters.getAllClusteredResults()); // allResults includes unclustered plus one representative from each cluster
      for (Cluster c : clusters) {
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.