Package edu.gslis.ttg.searchers

Examples of edu.gslis.ttg.searchers.SimpleSearcher.search()


    double averageThreshold = 0;
    Iterator<GQuery> queryIterator = trainingQueries.iterator();
    while(queryIterator.hasNext()) {
      GQuery query = queryIterator.next();
     
      Map<Long, TResult> seenResults = searcher.search(query);
     
      SimpleJaccardClusterer clusterer = new SimpleJaccardClusterer(new ArrayList<TResult>(seenResults.values()));
     
      // sweep through jaccard steps, calculating F1
      double maxF1 = 0;
View Full Code Here


      GQuery query = queryIterator.next();
      err.println(query.getTitle());
     
      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
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.