Examples of MRFDocumentRanker


Examples of ivory.smrf.retrieval.MRFDocumentRanker

        String concept = vocab[conceptID].getKey();

        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

Examples of ivory.smrf.retrieval.MRFDocumentRanker

            cascadeCost = ranker.getCascadeCost();
          }

          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.
              MarkovRandomField expandedMRF = mExpander.getExpandedMRF(mrf, results);

              // 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

Examples of ivory.smrf.retrieval.MRFDocumentRanker

        String concept = vocab[conceptID].getKey();

        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

Examples of ivory.smrf.retrieval.MRFDocumentRanker

            cascadeCost = ranker.getCascadeCost();
          }

          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.
              MarkovRandomField expandedMRF = mExpander.getExpandedMRF(mrf, results);

              // 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.