Predict scores or classification from, e.g., textTrain.
textPredict(
model_info,
word_embeddings,
x_append = NULL,
type = NULL,
dim_names = TRUE,
...
)
Model info (e.g., saved output from textTrain, textTrainRegression or textRandomForest).
Word embeddings
Variables to be appended after the word embeddings (x).
Type of prediction; e.g., "prob", "class".
Account for specific dimension names from textEmbed (rather than generic names including 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