{"id":17871493,"url":"https://github.com/sharpbit/autocomplete","last_synced_at":"2025-04-02T23:23:16.226Z","repository":{"id":112336053,"uuid":"328430361","full_name":"SharpBit/autocomplete","owner":"SharpBit","description":"A simple autocompletion system that uses the Brown University corpus to generate suggestions.","archived":false,"fork":false,"pushed_at":"2021-01-10T17:00:24.000Z","size":4067,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T13:41:59.584Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"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/SharpBit.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":"2021-01-10T16:42:51.000Z","updated_at":"2021-01-10T17:00:26.000Z","dependencies_parsed_at":"2023-05-13T06:45:35.616Z","dependency_job_id":null,"html_url":"https://github.com/SharpBit/autocomplete","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/SharpBit%2Fautocomplete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SharpBit%2Fautocomplete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SharpBit%2Fautocomplete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SharpBit%2Fautocomplete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SharpBit","download_url":"https://codeload.github.com/SharpBit/autocomplete/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246907006,"owners_count":20853013,"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-28T10:34:32.409Z","updated_at":"2025-04-02T23:23:16.208Z","avatar_url":"https://github.com/SharpBit.png","language":"Python","readme":"# Autocomplete\n\n- A simple autocompletion system that uses the Brown University corpus to generate suggestions.\n\n### Install Dependencies\n- Install Python 3.7 (add to PATH)\n- Run `pip3 install -r requirements.txt`\n- Run `py -3 download_nltk_packages.py`\n\n### Setup\n1. Run `py -3 create_unigrams.py` to process the Brown University corpus.\n2. Run `py -3 important_unigrams.py` add the most important unigrams to the suggestions.\n3. Run `py -3 important_bigrams.py` then `py -3 important_trigrams.py` to do the same for bigrams and trigrams.\n4. Run `py -3 create_trie.py` to create the trie of suggestions.\n5. Run `py -3 predict_text.py` to open a tkinter window to try it out.\n\n### How to Use\nType in something and press tab to use a suggestion. You might need to type something specific to the Brown University corpus since the variety of documents is limited.\n\n### Example\n![Example](https://i.imgur.com/10qHOhq.gif)\n\n### Directories\n- `/data` Where the processed corpus data is saved\n- `/graphs` Images of the graphs created by `important_unigrams.py`, `important_bigrams.py`, and `important_trigrams.py`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpbit%2Fautocomplete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharpbit%2Fautocomplete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpbit%2Fautocomplete/lists"}