Predict scores or classification from, e.g., textTrain.
textPredict( model_info, word_embeddings, x_append = NULL, type = NULL, dim_names = TRUE, ... )
(model object) Model info (e.g., saved output from textTrain, textTrainRegression or textRandomForest).
(tibble) Word embeddings
(tibble) Variables to be appended after the word embeddings (x).
(string) Type of prediction; e.g., "prob", "class".
(boolean) Account for specific dimension names from textEmbed() (rather than generic names including Dim1, Dim2 etc.). If FALSE the models need to have been trained on word embeddings created with dim_names FALSE, so that embeddings were only called Dim1, Dim2 etc.
Setting from stats::predict can be called.
Predicted scores from word embeddings.
word_embeddings <- word_embeddings_4 ratings_data <- Language_based_assessment_data_8