View source: R/1_1_textEmbed.R
textDimName | R Documentation |
Change the names of the dimensions in the word embeddings.
textDimName(word_embeddings, dim_names = TRUE)
word_embeddings |
List of word embeddings |
dim_names |
(boolean) If TRUE the word embedding name will be attached to the name of each dimension; is FALSE, the attached part of the name will be removed. |
Word embeddings with changed names.
see textEmbed
# Note that dimensions are called Dim1_harmonytexts etc.
word_embeddings_4$texts$harmonytexts
# Here they are changed to just Dim
w_e_T <- textDimName(word_embeddings_4$texts["harmonytexts"],
dim_names = FALSE
)
# Here they are changed back
w_e_F <- textDimName(w_e_T, dim_names = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.