textPCA() computes 2 PCA dimensions of the word embeddings for individual words.
textPCA(
words,
word_types_embeddings = word_types_embeddings_df,
to_lower_case = TRUE,
seed = 1010
)
A dataframe with words, their frquency and two PCA dimensions from the word_embeddings for the individual words that is used for the plotting in the textPCAPlot function.
see textPCAPlot
if (FALSE) { # \dontrun{
# Data
df_for_plotting2d <- textPCA(
words = Language_based_assessment_data_8$harmonywords,
word_types_embeddings = word_embeddings_4$word_types
)
df_for_plotting2d
} # }