TokenScore | R Documentation |
Computes lexicon score for a set of tokens
TokenScore(tokens, lexicon, ids = unique(tokens$id))
tokens |
Token data.table containing document id and word. |
lexicon |
Lexicon as a data.table with word and score columns. |
ids |
List of all document ids. |
data.table resulting of merging tokens and lexicon by adding 0 to tokens not found in lexicon. Column id is set as key.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.