Provides a mapping between Wikipedia internal ids (docids) and sequentially-numbered ints (docnos).
The main of this class provides a simple program for accessing docno mappings. Command-line arguments are as follows:
main
949596979899100101102103104
reader.close(); } catch (IOException e1) { } } mDocMapping = new WikipediaDocnoMapping(); FileSystem fs; try { fs = FileSystem.get(job); String indexPath = job.get("Ivory.IndexPath"); RetrievalEnvironment env = new RetrievalEnvironment(indexPath, fs);
177178179180181182183184185186187
sLogger.info("Loaded " + samplesMap.size() + " samples"); } else { sLogger.info("No sample file read."); } mDocMapping = new WikipediaDocnoMapping(); FileSystem fs; try { fs = FileSystem.get(job); String indexPath = job.get("Ivory.IndexPath"); RetrievalEnvironment env = new RetrievalEnvironment(indexPath, fs);
261262263264265266267268269270271