Description Usage Arguments Value Examples
Create a matrix of embeddings
1 2 | CreateEmbeddingMatrix(DocTermMatrix, Embeddings, Vocabulary,
LogInverse = F, Variance = F)
|
DocTermMatrix |
The document term matrix |
Embeddings |
The matrix of embeddings (e.g. Glove) where rows are words |
Vocabulary |
The Vocab list or dataframe from Create_Vocab_DocumentTermMatrix; needed if using LogInverse |
LogInverse |
whether to weight words using LogInverse; defaults to FALSE |
Variance |
whether to return embedding variance; defaults to FALSE |
Returns the average embedding of each document for each embedding dimension. If Variance requested then it is appended.
1 | CreateEmbeddingMatrix(MyDocTermMatrix, Glove.200, Vocab, LogInverse=F,Variance=F)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.