Description Usage Arguments Value Author(s) Examples
View source: R/predict_kgram_freqs.R
Predictive text based on Stupid Back-off N-gram model.
1 2 |
object |
a |
input |
a length one character vector, containing the input for next-word prediction. |
lambda |
a numeric vector of length one. The back-off penalization in Stupid Back-off algorithm. |
... |
further arguments passed to or from other methods. |
A tibble containing the next-word probabilities for all words in the dictionary.
Valerio Gherardi
1 | predict(twitter_freqs, "i love")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.