Package org.terrier.indexing

Examples of org.terrier.indexing.BasicSinglePassIndexer


    }
    System.err.println("Starting building the inverted file "
      + (ApplicationSetup.BLOCK_INDEXING ? "(with blocks)" : "")
      + "...");
    final long beginTimestamp = System.currentTimeMillis();
    BasicSinglePassIndexer _indexer;
    if (ApplicationSetup.BLOCK_INDEXING)
      _indexer = new BlockSinglePassIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX);
    else
      _indexer = new BasicSinglePassIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX);
    _indexer.index(new Collection[] {collectionTREC});
    long endTimestamp = System.currentTimeMillis();
    System.err.println("Finished building the inverted index...");
    double seconds = (endTimestamp - beginTimestamp) / 1000.0d;
    System.err.println("Time elapsed for inverted file: " + seconds);
    try{
View Full Code Here


      indexer = ApplicationSetup.BLOCK_INDEXING
        ? useSinglePass
          ? new BlockSinglePassIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX
          : new BlockIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX)
        : useSinglePass
          ? new BasicSinglePassIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX)
          : new BasicIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX);
 
      SimpleFileCollection sfc = new SimpleFileCollection(folderList, true);
 
      indexer.index(new Collection[] { sfc });
View Full Code Here

TOP

Related Classes of org.terrier.indexing.BasicSinglePassIndexer

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.