Learn R Programming

text (version 0.9.50)

textPredict: Predict scores or classification from, e.g., textTrain.

Description

Predict scores or classification from, e.g., textTrain.

Usage

textPredict(model_info, new_data, type = NULL, ...)

Arguments

model_info

Model info (e.g., saved output from textTrain, textTrainRegression or textRandomForest).

new_data

Word embeddings from new data to be predicted from.

type

Type of prediction; e.g., "prob", "class".

...

Setting trom stats::predict can be called.

Value

Predicted scores from word embeddings.

See Also

see textTrain textTrainLists textTrainRandomForest textSimilarityTest

Examples

Run this code
# NOT RUN {
word_embeddings <- word_embeddings_4
ratings_data <- Language_based_assessment_data_8
# }

Run the code above in your browser using DataLab