Description Usage Arguments Value Examples
collects the total number of tokens (Ntokens), and the number of unique tokens (Utokens) in the collection of documents
1 | count_tokens(doc_tokens)
|
doc_tokens |
the tokens in the document |
a named vector with total token count 'Ntokens' and unique token count 'Utokens'
1 2 | doc_tokens <- tokenize_docs( c('First entry of the doc,', 'Second entry of the doc.') )
count_tokens(doc_tokens)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.