{"id":15920911,"url":"https://github.com/halcy/ngram-lm-playground","last_synced_at":"2025-08-29T09:23:07.109Z","repository":{"id":66710803,"uuid":"60335310","full_name":"halcy/NGram-LM-Playground","owner":"halcy","description":null,"archived":false,"fork":false,"pushed_at":"2016-06-03T09:22:48.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T04:44:09.491Z","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/halcy.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":"2016-06-03T09:20:55.000Z","updated_at":"2018-05-21T20:20:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"e34ac17a-c16a-455b-a024-10199ed36fec","html_url":"https://github.com/halcy/NGram-LM-Playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/halcy/NGram-LM-Playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halcy%2FNGram-LM-Playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halcy%2FNGram-LM-Playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halcy%2FNGram-LM-Playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halcy%2FNGram-LM-Playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halcy","download_url":"https://codeload.github.com/halcy/NGram-LM-Playground/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halcy%2FNGram-LM-Playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272659283,"owners_count":24971607,"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-08-29T02:00:10.610Z","response_time":87,"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":[],"created_at":"2024-10-06T19:42:14.863Z","updated_at":"2025-08-29T09:23:07.074Z","avatar_url":"https://github.com/halcy.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# N-Gram Playground\n\nN-Gram language models model the structure of a language by modeling the probabilities of words depending on a history of the previous n - 1 words. This simple approach, with a statistical model that is extremely easy to estimate from some givent text, nevertheless manages to capture a good deal of what makes language language.\n\nN-Gram language models can be used to estimate the probability of a given sentence (\"how likely am I to see this sentence in this language\"). They can also be used generatively, by starting with a seed phrase and then picking additional words according to the probability the n-gram LM would assign them given the current context.\n\nThis file contains some code to estimate an n-gram LM from a given text or some hard-coded sentences, which can then be used to estimate the probability of a sentence. It also contains code for generating text, which can also be used to verify the probability of a sentence actually appearing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalcy%2Fngram-lm-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalcy%2Fngram-lm-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalcy%2Fngram-lm-playground/lists"}