N-Gram language model that learns n-gram probabilities from a given corpus and generates new sentences from it based on the conditional probabilities from the generated words and phrases.
Author: Levindo Gabriel Taschetto Neto.
$ pip install docopt
$ pip install nltk
- Operating system: Windows.
- Python: 3.0 or superior.
$ python lmgen.py InputFile
InputFile is optional. If no input is given, this default corpus is used.
MIT License. Click here for more information about this license.