Project 0 for CS 371R:
Information Retrieval and Web Search

Due: September 12, 2022 at 11:59 p.m.

Project 0 will NOT be graded, and is entirely optional. It is just an exercise to walk you through the trace-collection and submission procedure. The sole purpose of Project 0 is to smooth out any glitches with Java environment setting, trace-collecting or submitting. If you submit Project 0 and have any problems on the way, the TA can help you with it.

The TA will help people with problems regarding Project 0 until the submission deadline. After the submission deadline for Project 0, it will be your responsibility to make sure that you know how to:

  1. Set up the Java environment correctly
  2. Collect traces
  3. Submit the required files

Project 0

As discussed in class, a basic system for vector-space retrieval (VSR) is available in /u/mooney/ir-code/ir/vsr/. See the Javadoc for this system. Use the main method for InvertedIndex to index a set of documents and then process queries.

You can use the web pages in /u/mooney/ir-code/corpora/curlie-science/ as a set of test documents. This corpus contains 900 pages, 300 random samples each from the Curlie indices for biology, physics, and chemistry.

See the sample trace of using the system. Open a Firefox browser before you run the code in order to have selected documents displayed in the browser.

Your task

  1. Setup your Java environment (see info at
  2. Collect the trace using the "script" Unix utility. (see Project Submission Info)
  3. Index the document collection at /u/mooney/ir-code/corpora/curlie-science/ and give the queries "cold fusion" and "quantum mechanics".

Submission Instructions

Follow the general instructions for submitting files using Canvas as described in Project Submission Info. For this assignment, you need to submit the following files:
  1. [PREFIX] InvertedIndex code in zip file (*.java and *.class file)
  2. [PREFIX]_experiment1_trace.txt The trace file
  3. [PREFIX]_report.pdf A PDF report file with a mere "Hello World!" text.
For example, the files listed under "Turned In" on Canvas should be:

and the zip file should have the following contents:
$ unzip -l Archive: Length Date Time Name --------- ---------- ----- ---- 21067 2015-08-24 12:57 ir/vsr/ 10049 2015-08-26 17:26 ir/vsr/InvertedIndex.class --------- ------- 31106 2 files
If you prefer to work in Eclipse, there is also a brief guide on creating an Eclipse project from the class code.