joshualoehr/ngram-language-model

Python implementation of an N-gram language model with Laplace smoothing and sentence generation.

37
/ 100
Emerging

This tool helps language researchers and natural language processing practitioners create and evaluate simple text generation models. You provide it with pre-processed text data, and it builds a statistical model of word sequences. The output includes newly generated sentences based on the patterns learned from your data, along with a measure of how well the model predicts new text.

No commits in the last 6 months.

Use this if you need to quickly prototype and understand basic text generation, or if you're analyzing simple word probabilities in a given text corpus.

Not ideal if you require sophisticated, context-aware, or long-form text generation that goes beyond simple word sequences.

natural-language-processing computational-linguistics text-generation language-modeling corpus-analysis
No License Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 9 / 25
Maturity 8 / 25
Community 20 / 25

How are scores calculated?

Stars

88

Forks

27

Language

Python

License

Last pushed

Feb 09, 2018

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/nlp/joshualoehr/ngram-language-model"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.