Learn R Programming

text (version 0.9.50)

textEmbedStatic: Applies word embeddings from a given decontextualized static space (such as from Latent Semantic Analyses) to all character variables

Description

Applies word embeddings from a given decontextualized static space (such as from Latent Semantic Analyses) to all character variables

Usage

textEmbedStatic(df, space, tk_df = "null", aggregate = "mean")

Arguments

df

dataframe that at least contains one character column.

space

decontextualized/static space (from textSpace, which is not included in the current text package).

tk_df

default "null"; option to use either the "tk" of "df" space (if using textSpace, which has not been implemented yet).

aggregate

method to aggregate semantic representation when their are more than a single word. (default is "mean"; see also "min" and "max", "concatenate" and "normalize")

Value

A list with tibbles for each character variable. Each tibble comprises a column with the text, followed by columns representing the semantic representations of the text. The tibbles are called the same as the original variable.

See Also

see textEmbed