Description Usage Arguments Value Author(s) Examples
Applies a function to a matrix representation of a sentence to get an eigensentence map.
1 2 | eigenSentences(wordembed, functiontoapply = sum, normalize = F,
eigsentbasislength = NA, sentencesIn = NA, eventdata = NA)
|
wordembed |
the words and their vector embedding - a data frame with n basis length columns |
functiontoapply |
e.g. mean, max, min, a custom function — needs to work with apply |
normalize |
normalize the magnitude of the eigsentences to be 1 |
eigsentbasislength |
less than or equal to the full basis length (100) |
eigensentence matrix is output
Avants BB
1 2 | data(reuters_words,package="RKRNS")
esent<-eigenSentences( reuters_words )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.