Package org.terrier.structures

Examples of org.terrier.structures.MetaIndex


      {
        docNames[metaKeyId] = set.getMetaItems(metaIndexDocumentKey);
      }
      else
      {
        final MetaIndex metaIndex = index.getMetaIndex();
        docNames[metaKeyId] = metaIndex.getItems(metaIndexDocumentKey, docids);
      }
      metaKeyId++;
    }
   
   
View Full Code Here


      {
        docNames[metaKeyId] = set.getMetaItems(metaIndexDocumentKey);
      }
      else
      {
        final MetaIndex metaIndex = index.getMetaIndex();
        docNames[metaKeyId] = metaIndex.getItems(metaIndexDocumentKey, docids);
                        
                          
      }
      metaKeyId++;
    }
View Full Code Here

    String inputFile = ApplicationSetup.getProperty("ssa.input.file","");
    try {
      String line = null;
      BufferedReader br = Files.openFileReader(inputFile);
      staticScores = new double[index.getCollectionStatistics().getNumberOfDocuments()];
      MetaIndex m = index.getMetaIndex();
      while((line = br.readLine())!= null)
      {
        final String[] parts = line.split("\\s+");
        final int docid = m.getDocument("docno", parts[0]);
        if (docid < 0)
        {
          //logger.warn("Docno " + parts[0] + " not found" );
          continue;
        }
View Full Code Here

    {
      String[] docnos;
      if (set.hasMetaItems(metaIndexDocumentKey)) {
        docnos = set.getMetaItems(metaIndexDocumentKey);
      } else {
        final MetaIndex metaIndex = index.getMetaIndex();
        docnos = metaIndex.getItems(metaIndexDocumentKey, set.getDocids());
      }
      return docnos;
    }
View Full Code Here

      {
        docNames[metaKeyId] = set.getMetaItems(metaIndexDocumentKey);
      }
      else
      {
        final MetaIndex metaIndex = index.getMetaIndex();
        docNames[metaKeyId] = metaIndex.getItems(metaIndexDocumentKey, docids);
                    
      }
      metaKeyId++;
   
    StringBuilder sbuffer = new StringBuilder();
View Full Code Here

       
       
        }
       
    private ResultSet MMR(ResultSet sim1set) throws IOException {
         MetaIndex meta1=index.getMetaIndex();  
         ResultSet MMRSet=sim1set.getResultSet(0,3);
         name=meta1.getItems("filename", docid);
         System.out.println(" info : names using docid received");
     //    System.out.println("docid at 0th position in MMR func just above for loop "+docid[0]);
         for(int j=0;j<5;j++)
         {
       // name[j]=meta1.getItem("filename",docid[j]);   
View Full Code Here

      {
        docNames[metaKeyId] = set.getMetaItems(metaIndexDocumentKey);
      }
      else
      {
        final MetaIndex metaIndex = index.getMetaIndex();
        docNames[metaKeyId] = metaIndex.getItems(metaIndexDocumentKey, docids);
      }
      metaKeyId++;
    }
   
   
View Full Code Here

      {
        docNames[metaKeyId] = set.getMetaItems(metaIndexDocumentKey);
      }
      else
      {
        final MetaIndex metaIndex = index.getMetaIndex();
        docNames[metaKeyId] = metaIndex.getItems(metaIndexDocumentKey, docids);
      }
      metaKeyId++;
    }
   
   
View Full Code Here

  
String finaldocs;
String content=new String();

    private void printer() throws IOException {
        MetaIndex meta2=index.getMetaIndex();
      //    System.out.println("the final docids are : ");
          for(int h:hp.keySet())
          {
          
       //       System.out.println(" h is: "+h);
View Full Code Here

      {
        docNames[metaKeyId] = set.getMetaItems(metaIndexDocumentKey);
      }
      else
      {
        final MetaIndex metaIndex = index.getMetaIndex();
        docNames[metaKeyId] = metaIndex.getItems(metaIndexDocumentKey, docids);
      }
      metaKeyId++;
    }
   
   
View Full Code Here

TOP

Related Classes of org.terrier.structures.MetaIndex

Copyright © 2018 www.massapicom. 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.