Package ivory.smrf.retrieval

Examples of ivory.smrf.retrieval.MRFDocumentRanker.rank()


        String[] concepts = concept.split(" ");
        MarkovRandomField conceptMRF = curBuilder.buildMRF(concepts);

        MRFDocumentRanker ranker = new MRFDocumentRanker(conceptMRF, docSet, docSet.length);
        Accumulator[] conceptResults = ranker.rank();
        Arrays.sort(conceptResults, new Accumulator.DocnoComparator());

        float score = 0.0f;
        for (int i = 0; i < conceptResults.length; i++) {
          if (fbResults[i].docno != conceptResults[i].docno) {
View Full Code Here


          else
            // Retrieve documents using this MRF.
            MRFDocumentRanker ranker = new MRFDocumentRanker(mrf, mNumHits);

            if (mExpander != null) {
              results = ranker.rank();
            }

            // Perform pseudo-relevance feedback, if requested.
            if (mExpander != null) {
              // Get expanded MRF.
View Full Code Here

              // Re-rank documents according to expanded MRF.
              ranker = new MRFDocumentRanker(expandedMRF, mNumHits);
            }
 
            // Rank the documents.
            results = ranker.rank();

            //cascadeCost = ranker.getCost();
            cascadeCost = -1; //todo: later
       
          }
View Full Code Here

        String[] concepts = concept.split(" ");
        MarkovRandomField conceptMRF = curBuilder.buildMRF(concepts);

        MRFDocumentRanker ranker = new MRFDocumentRanker(conceptMRF, docSet, docSet.length);
        Accumulator[] conceptResults = ranker.rank();
        Arrays.sort(conceptResults, new Accumulator.DocnoComparator());

        float score = 0.0f;
        for (int i = 0; i < conceptResults.length; i++) {
          if (fbResults[i].docno != conceptResults[i].docno) {
View Full Code Here

          else
            // Retrieve documents using this MRF.
            MRFDocumentRanker ranker = new MRFDocumentRanker(mrf, mNumHits);

            if (mExpander != null) {
              results = ranker.rank();
            }

            // Perform pseudo-relevance feedback, if requested.
            if (mExpander != null) {
              // Get expanded MRF.
View Full Code Here

              // Re-rank documents according to expanded MRF.
              ranker = new MRFDocumentRanker(expandedMRF, mNumHits);
            }
 
            // Rank the documents.
            results = ranker.rank();

            //cascadeCost = ranker.getCost();
            cascadeCost = -1; //todo: later
       
          }
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.