Generating Sentences with n-grams using Python

preview_player
Показать описание
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.
Рекомендации по теме
Комментарии
Автор

Hi Starnes,
I am trying to extract senteces using some predefnied bigrams. Can you please help me?

arifahammed
Автор

Your way of explaining is just so clear. Nice work.

black-sci
Автор

Hi, can you share the extentions you use in your vscode

joshuva.bernard
Автор

7:41 I see your not bothering with a state to make your choice's more unique.

busterdafydd
Автор

6:31 alright this really isn't a lookup table, your getting much closer to a tree structure. and data structures were possible should be compressed as possible. So your list should remove duplicates but either it should become a dictionary with a count factor or sort the list with the selection algorithm favouring items at one end of the list over the other.... In fact a tree structure can have more depth, if for example you keep the upper limit words, in that all words that appear less than twice for example get removed, so you are linking words the connect to each other much more strongly.

busterdafydd
Автор

Good job bro, JESUS IS COMING BACK VERY SOON;WATCH AND PREPARE

thechoosen
visit shbcf.ru