kevmor123 / InformationRetrieval

Module in Computer Science Masters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CS7IS3 Assignment 1: Lucene and Cranfield

createIndex.jar: creates an index of the cran collection, and stores in disk.

To execute this file, run the following command:
java -jar createIndex.jar

queryIndex.jar: searches through the index, and returns results. The output results are stored in output directory.

To execute this file, run the following command:
java -jar queryIndex.jar

The files present in output directory, namely QRels.txt and results.txt can be used to evaluate metrics using TREC Eval tool.

The command is as follows:
../trec_eval output/QRels.txt output/results.txt

To change the similarity method:
In the createIndex file replace the string input in this line of code to the preferred similarity: IndexWriterConfig config = createIndex(analyzer, ”enter here”);

About

Module in Computer Science Masters


Languages

Language:HTML 99.3%Language:CSS 0.4%Language:C 0.1%Language:TeX 0.1%Language:Java 0.0%Language:JavaScript 0.0%Language:Makefile 0.0%Language:Shell 0.0%Language:Gnuplot 0.0%Language:C++ 0.0%