predict.grafzahl | R Documentation |
Make prediction from a fine-tuned grafzahl object.
## S3 method for class 'grafzahl'
predict(object, newdata, cuda = detect_cuda(), return_raw = FALSE, ...)
object |
an S3 object trained with |
newdata |
a quanteda::corpus or a character vector of texts on which prediction should be made. |
cuda |
logical, whether to use CUDA, default to |
return_raw |
logical, if |
... |
not used |
a vector of class prediction or a matrix of logits
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.