{"id":19744700,"url":"https://github.com/amber-abuah/ngram-text-generation","last_synced_at":"2026-05-09T20:50:43.268Z","repository":{"id":262165783,"uuid":"886381674","full_name":"Amber-Abuah/NGram-Text-Generation","owner":"Amber-Abuah","description":"Text generation for autocomplete using N-Grams and Maximum Likelihood Estimators.","archived":false,"fork":false,"pushed_at":"2024-11-10T23:13:12.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-10T20:43:01.471Z","etag":null,"topics":["mle","ngram-language-model","ngrams","nlp","nltk","streamlit"],"latest_commit_sha":null,"homepage":"https://ngram-text-generation-amber-abuah.streamlit.app/","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/Amber-Abuah.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":"2024-11-10T21:06:21.000Z","updated_at":"2024-11-15T21:02:12.000Z","dependencies_parsed_at":"2024-11-11T00:28:11.017Z","dependency_job_id":null,"html_url":"https://github.com/Amber-Abuah/NGram-Text-Generation","commit_stats":null,"previous_names":["amber-abuah/ngram-text-generation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amber-Abuah%2FNGram-Text-Generation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amber-Abuah%2FNGram-Text-Generation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amber-Abuah%2FNGram-Text-Generation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amber-Abuah%2FNGram-Text-Generation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amber-Abuah","download_url":"https://codeload.github.com/Amber-Abuah/NGram-Text-Generation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241077038,"owners_count":19905711,"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":["mle","ngram-language-model","ngrams","nlp","nltk","streamlit"],"created_at":"2024-11-12T02:00:53.193Z","updated_at":"2026-05-09T20:50:43.220Z","avatar_url":"https://github.com/Amber-Abuah.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Text Autocomplete Using N-Grams\n\nA Streamlit app capable of auto-completing text from a given context. \nThe app uses three N-grams: a Bigram, Trigram and Fourgram to generate further text from a context provided by the user.\nThe predicted following words are generated by Maximum Likelihood Estimator (MLE) models, trained on each N-gram.  \n\nBelow is an example of an autocomplete of the sentence _'I was in awe when I noticed'_ from each N-gram:\n\n\u003e**Bigram:** I was in awe when I noticed her friends in last...  \n\u003e**Trigram:** I was in awe when I noticed by the window. Emma then looked up; but as long as...   \n\u003e**Fourgram:** I was in awe when I noticed her father's house, he pleased them all.\n\n![image](https://github.com/user-attachments/assets/4fa5bb63-25c4-48c2-8413-1190af00757b)\nTraining data: [Emma](https://www.gutenberg.org/ebooks/19839) and [Persuasion](https://www.gutenberg.org/ebooks/105) by Jane Austen from the [Gutenburg Corpus](https://www.gutenberg.org/).  \nLibraries: `NLTK`, `Streamlit`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famber-abuah%2Fngram-text-generation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famber-abuah%2Fngram-text-generation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famber-abuah%2Fngram-text-generation/lists"}