This is a 'n-gram sentence generator' and 'calculate bi-gram sentence probability'
sentence generator based on char type.
If you want to use your file, just change file name
This code can generate only 3,4,5 gram. But, you can also change the range.
Start the code, python wait your input. Then, you just press the n-gram number. after generate sentence, code is done.
calculate sentence probaility also based on char type.
This code based on previous sentence_generator.py
's bigram pickle.
So, If you want to run this code should have to make 2gram.pkl
from sentence_generator.py