{"id":20976112,"url":"https://github.com/igoraugust0/information-retrieval","last_synced_at":"2025-07-21T21:35:15.785Z","repository":{"id":216826987,"uuid":"741953297","full_name":"IgorAugust0/information-retrieval","owner":"IgorAugust0","description":"ℹ️ Information Retrieval models implemented in Python","archived":false,"fork":false,"pushed_at":"2024-08-03T19:51:03.000Z","size":9166,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T09:19:14.378Z","etag":null,"topics":["boolean-model","information-retrieval","inverted-index","matplotlib","nltk","pickle","precision-recall","prettytable","python","stemming","tf-idf","tokenization","vector-space-model"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IgorAugust0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-11T13:05:04.000Z","updated_at":"2024-08-03T19:57:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"881e57a7-0557-4446-ae28-41dd01b65597","html_url":"https://github.com/IgorAugust0/information-retrieval","commit_stats":null,"previous_names":["igoraugust0/information-retrievel"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IgorAugust0/information-retrieval","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorAugust0%2Finformation-retrieval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorAugust0%2Finformation-retrieval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorAugust0%2Finformation-retrieval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorAugust0%2Finformation-retrieval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IgorAugust0","download_url":"https://codeload.github.com/IgorAugust0/information-retrieval/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorAugust0%2Finformation-retrieval/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266383755,"owners_count":23920962,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boolean-model","information-retrieval","inverted-index","matplotlib","nltk","pickle","precision-recall","prettytable","python","stemming","tf-idf","tokenization","vector-space-model"],"created_at":"2024-11-19T04:50:11.993Z","updated_at":"2025-07-21T21:35:15.738Z","avatar_url":"https://github.com/IgorAugust0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Information Retrieval (IR)\n\n[![License](https://img.shields.io/github/license/IgorAugust0/information-retrieval)](LICENSE)\n[![Python](https://img.shields.io/badge/python-3.12.4%2B-blue)](https://www.python.org/downloads/)\n[![NLTK](https://img.shields.io/badge/nltk-3.8.1-blue)](https://www.nltk.org/)\n[![PrettyTable](https://img.shields.io/badge/prettytable-3.10.2-blue)](https://pypi.org/project/prettytable/)\n[![Matplotlib](https://img.shields.io/badge/matplotlib-3.9.1-blue)](https://matplotlib.org/)\n[![TQDM](https://img.shields.io/badge/tqdm-4.66.4-blue)](https://tqdm.github.io/)\n\nThis 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](https://github.com/IgorAugust0/ORI) at the Federal University of Uberlândia (UFU).\n\n## Programs\n\n| Program | Description |\n| --- | --- |\n| [Boolean Model](1_boolean_model/base_samba/boolean_model.py) [(Instructions)](1_boolean_model/README.md) | Implements a Boolean Model for Information Retrieval, representing documents as sets of terms and queries as Boolean expressions of terms.  |\n| [Vector Space Model](2_vector_space_model/base_samba/vsm.py) [(Instructions)](2_vector_space_model/README.md)| Implements a Vector Space Model for Information Retrieval, representing documents and queries as vectors in a high-dimensional space. |\n| [Evaluation](3_evaluation/evaluation.py) [(Instructions)](3_evaluation/README.md)| 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. |\n\n## Dependencies\n\nThese scripts require Python 3 and the following Python libraries installed:\n\n- [**nltk**](https://www.nltk.org/install.html) (for both Boolean Model and Vector Space Model)\n- [**prettytable**](https://pypi.org/project/prettytable/) (for the Boolean Model)\n- [**matplotlib**](https://matplotlib.org/stable/install/index.html) (for the Evaluation script)\n- [**tqdm**](https://tqdm.github.io/) (for all scripts, but it's likely that you already have it installed)\n\nYou can install these dependencies using pip:\n\n```bash\npip install -r requirements.txt\n```\n\n\u003e you can use the command `pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}` to update all packages on Windows\n\n## How to Run\n\nTo run the scripts, you need to pass the necessary files as command line arguments. Please refer to the individual scripts for more details.\n\n## License\n\nThis program is provided under the [MIT License](LICENSE). Feel free to use, modify, and distribute it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figoraugust0%2Finformation-retrieval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figoraugust0%2Finformation-retrieval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figoraugust0%2Finformation-retrieval/lists"}