Рет қаралды 14,435
This is a little experiment demonstrating how n-grams work. It's not production worthy but it does prove that sentences generated using n-grams are more logical than those which don't use them. And it shows an interesting way to use Python dictionaries and lists.