# Examines how well the embeddings from "harmonytext" can
# predict the numeric variable "hilstotal" in the pre-included
# dataset "Language_based_assessment_data_8".
if (FALSE) {
trained_model <- textTrain(
x = word_embeddings_4$texts$harmonytext,
y = Language_based_assessment_data_8$hilstotal
)
# Examine results (t-value, degree of freedom (df), p-value,
# alternative-hypothesis, confidence interval, correlation coefficient).
trained_model$results
}
Run the code above in your browser using DataLab