Skip to content

Latest commit

 

History

History
76 lines (56 loc) · 2.61 KB

README.md

File metadata and controls

76 lines (56 loc) · 2.61 KB

Vector Space Based Information Retrieval System

This repository contains the project "Vector Space Based Information Retrieval System" completed in the partial fulfillment of the course Information Retrieval(CS F469).

For more details regarding the problem statement, refer problem statement

Execution Instructions

Use python version >= 3.6

  1. Install required dependencies
   $ pip install -r requirements.txt
  1. To test a particular model, navigate to the respective folder.
   $ cd model-name
   for eg: cd basic-vector-space-model 
  1. Index creation
   filepath refers to the dataset file path
   $ python3 index_creation.py --filepath

   for eg: $ python3 index_creation.py ../dataset/wiki_00 
  1. Testing queries
   $ python3 test_queries.py
   Sample Output:
    
   Press 1 to enter your own query 
   Press 2 to get result for a pre-defined query 
   Press any other button to exit

   Enter your input: 1

   Enter the query you want to search: The Indian Cricket Team

   Retrieving relevant documents...
   Document ID    Document Name                                                  Score
   -------------  ----------------------------------------------------------  --------
         1249     Indian cricket team in the West Indies in 2017              0.358479
         1247     Indian cricket team in Sri Lanka in 2017                    0.347235
         1246     Zimbabwean cricket team in Sri Lanka in 2017                0.274411
         1245     Pakistani cricket team in Bangladesh in 2017                0.264218
         2850     Afghan cricket team in the West Indies in 2017              0.263237
         1472     List of Bangladesh Under-23 international cricketers        0.24604
         5438     Indian Navy (football club)                                 0.244117
         1299     Bangladesh national under-23 cricket team                   0.236159
         2694     List of Bangladesh A international cricketers               0.215802
         2605     Irish cricket team against Afghanistan in India in 2016–17  0.207011

   Press 1 to enter your own query 
   Press 2 to get result for a pre-defined query 
   Press any other button to exit

   Enter your input: q

For more details about the methodology and results, refer to the project report

Created By