Coder Social home page Coder Social logo

antoniojesus0398 / cranfield-vector-space-model Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samujjwaal/cranfield-vector-space-model

0.0 0.0 0.0 2.22 MB

Implementation of a Vector Space Retrieval Model using TF-IDF and cosine similarity on the Cranfield document corpus

Jupyter Notebook 93.75% Python 6.25%

cranfield-vector-space-model's Introduction

Cranfield Corpus Vector Space Model

This project was done as a homework assignment for CS582: Information Retrieval course at the University of Illinois at Chicago during the Spring 2020 term.


The dataset used was the Cranfield collection which is a standard Information Retrieval text collection, consisting of 1400 documents from the aerodynamics field.

Each document in the collection are in SGML format. So the SGML tags (e.g.,<TITLE>, <DOC>,<TEXT>, etc.) have been eliminated and only the text between the <TITLE> and <TEXT> tags have been retained for building the Vector Space Retrieval Model.

For the tasks in this assignment the pre-processing tools implemented in this project were reused. The documents after cleaning were stored in a new folder.

There is also a list of queries and a list of relevant documents for each query provided, to calculate the precision and recall values of the retrieval model. The evaluation metrics are saved in an output file.

The same text pre-processing operations were applied on both the corpus documents and the queries.


The tasks in the assignment included:

  1. Implement an indexing scheme based on the vector space model. TF-IDF used for weighting scheme.

  2. For each of the queries, determine a ranked list of documents, in descending order of their cosine similarity with the queries.

  3. Determine the average precision and recall for the queries, using top 10, 50, 100 and 500 documents in the ranking.

Check out the Jupyter Notebook to see the python implementation of the tasks.

cranfield-vector-space-model's People

Contributors

samujjwaal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.