{"id":24757938,"url":"https://github.com/noureldin2303/inverted-index-python","last_synced_at":"2025-10-31T13:03:43.080Z","repository":{"id":149983616,"uuid":"614434103","full_name":"Noureldin2303/Inverted-index-python","owner":"Noureldin2303","description":"Writing a simple Inverted Index in Python","archived":false,"fork":false,"pushed_at":"2023-04-07T14:05:18.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T09:12:06.283Z","etag":null,"topics":["communityexchange","educative","github-campus-experts","inverted-index","learn","preprocessing","python","search-engine","student-vscode"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/Noureldin2303.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":"SECURITY.md","support":null,"governance":null}},"created_at":"2023-03-15T15:18:56.000Z","updated_at":"2024-07-27T14:26:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b8e7157-2858-4ea3-b1b9-2416bc86c189","html_url":"https://github.com/Noureldin2303/Inverted-index-python","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.4285714285714286,"last_synced_commit":"4e23e1b31de88a763981ed469f20a9bfef8d4c69"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Noureldin2303/Inverted-index-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noureldin2303%2FInverted-index-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noureldin2303%2FInverted-index-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noureldin2303%2FInverted-index-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noureldin2303%2FInverted-index-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Noureldin2303","download_url":"https://codeload.github.com/Noureldin2303/Inverted-index-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noureldin2303%2FInverted-index-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281992161,"owners_count":26595645,"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-10-31T02:00:07.401Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["communityexchange","educative","github-campus-experts","inverted-index","learn","preprocessing","python","search-engine","student-vscode"],"created_at":"2025-01-28T15:37:05.513Z","updated_at":"2025-10-31T13:03:43.038Z","avatar_url":"https://github.com/Noureldin2303.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inverted-index-python\nWriting a simple Inverted Index in Python\n\n## What is an Inverted Index?\n\n```\nThe Inverted Index is the data structure used to support full text search over a set of documents.\nIt is constituted by a big table where there is one entry per word in all the documents processed,\nalong with a list of the key pairs: document id, frequency of the term in the document.\n```\n\n## How does it work?\n\n   \n* Collect the documents to be indexed – I will use simple strings for while;\n* Tokenize the text, turning each document into a list of tokens\n* Do linguistic preprocessing, producing a list of indexing terms\n* Index the documents that each term occurs in by creating an inverted index, consisting of a dictionary and postings.\n\n--------------------------------------------------------------------------------------------------\n\n### For Example:\n\n\n![inverted index](https://hdscorp--c.na74.content.force.com/servlet/servlet.ImageServer?id=0151J000004MM9EQAW\u0026oid=00Do0000000IJig)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoureldin2303%2Finverted-index-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoureldin2303%2Finverted-index-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoureldin2303%2Finverted-index-python/lists"}