{"id":17383534,"url":"https://github.com/alexst07/ir-system-unicamp","last_synced_at":"2025-03-27T20:50:01.337Z","repository":{"id":79921461,"uuid":"604677398","full_name":"alexst07/ir-system-unicamp","owner":"alexst07","description":"Task of ir system subject of Unicamp","archived":false,"fork":false,"pushed_at":"2023-02-21T15:22:10.000Z","size":783,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T23:28:20.571Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexst07.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-02-21T15:06:16.000Z","updated_at":"2023-02-21T15:09:57.000Z","dependencies_parsed_at":"2023-04-22T01:01:29.849Z","dependency_job_id":null,"html_url":"https://github.com/alexst07/ir-system-unicamp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexst07%2Fir-system-unicamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexst07%2Fir-system-unicamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexst07%2Fir-system-unicamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexst07%2Fir-system-unicamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexst07","download_url":"https://codeload.github.com/alexst07/ir-system-unicamp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245924498,"owners_count":20694728,"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","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":[],"created_at":"2024-10-16T07:43:02.197Z","updated_at":"2025-03-27T20:50:01.317Z","avatar_url":"https://github.com/alexst07.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ir-system-unicamp\nTask of ir system subject of Unicamp\n\n## how to execute and test\n### requirements\nAnaconda\n\n### Creating a new environment:\n```shell\nconda create --name irunicamp python=3.9\nconda activate irunicamp\npip install jupyterlab\n```\n\n## Executing the notebook\n\nTo execute and test the notebook you just have to run all cells,\nThe function ```best_document_index``` calculate which document\nfrom the dataset match better with each query.\n\nThe last part of the code will give the indexes of each document that\nmatch better with each query:\n```python\n# find the best document match for each query\nbest_indexes = []\nfor q in query_corpus:\n    best_i = best_document_index(q)\n    best_indexes.append(best_i)\n    \nprint(best_indexes)\n```\n\n## How this project was created?\nThis project uses gensim and numpy.\nThe first step was read and parse the dataset.\nSo, the corpus of documents and the dictionary was created.\nThese was the input of OkapiBM25Model from gensim.\nSo, TfidfModel was used the calculate the similarities between each document with the input query.\nIn the last, we calculated which document match best for each query.\nChatGPT was used to give information about the algorithm BM25, and give snippets of code about how to use \ngensim and BM25 in Python.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexst07%2Fir-system-unicamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexst07%2Fir-system-unicamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexst07%2Fir-system-unicamp/lists"}