Description Usage Arguments Details Value Author(s) See Also
Ngram Model to predict next word We built and train three ngram to check what will be the next word, we check first with the last 3 words, if nothing is found, the last two and so the last. If there is no match, the word the most used is returned.
1 | next_word(str1)
|
str1 |
a sentence or word, just the maximum last three words will be in the process. |
This function is the last test for the data science coursera course of Hopkins university
the five word with the higher frequency following the precedents words.
Aurelien Roussille
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.