Code Monkey home page Code Monkey logo

information-retrievel's Introduction

Information Retrieval (IR)

License Python NLTK PrettyTable Matplotlib TQDM

This repository contains three Python scripts implementing different models for Information Retrieval: Boolean Model, Vector Space Model, and an Evaluation script. Each script represents a different approach to Information Retrieval and they can be used to understand the basics of this field. They were made during the Information Retrieval "Organização e Recuperação da Informação (ORI)" course at the Federal University of Uberlândia (UFU).

Programs

Program Description
Boolean Model (Instructions) Implements a Boolean Model for Information Retrieval, representing documents as sets of terms and queries as Boolean expressions of terms.
Vector Space Model (Instructions) Implements a Vector Space Model for Information Retrieval, representing documents and queries as vectors in a high-dimensional space.
Evaluation (Instructions) This script is used to evaluate the performance of an Information Retrieval system. It calculates precision and recall scores for each query and generates plots for individual query results and the average scores of all queries.

Dependencies

These scripts require Python 3 and the following Python libraries installed:

  • nltk (for both Boolean Model and Vector Space Model)
  • prettytable (for the Boolean Model)
  • matplotlib (for the Evaluation script)
  • tqdm (for all scripts, but it's likely that you already have it installed)

You can install these dependencies using pip:

pip install -r requirements.txt

you can use the command pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_} to update all packages on Windows

How to Run

To run the scripts, you need to pass the necessary files as command line arguments. Please refer to the individual scripts for more details.

License

This program is provided under the MIT License. Feel free to use, modify, and distribute it.

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.