Description Usage Arguments Value Examples
View source: R/predict_troll.R
Detect if given texts are trolls
1 | predict_troll(x, model_ = NULL, mdl_data_ = NULL)
|
x |
a vector of text |
model_ |
a model that is passed to predict, defaults to the |
mdl_data_ |
a model as returned by |
a vector with the same lengths as x that holds the predicted probabilities that the given text is trolling
1 2 | text <- c("You suck, die!", "What a nice world we have today", "I like you", "I hate you")
(pred <- predict_troll(text))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.