Description Usage Arguments Value Examples
Access n-grams tokens of documents as a vector.
| 1 2 3 4 5 6 7 8 9 10 | get_ngrams(document, ...)
## S3 method for class 'document'
get_ngrams(document, ...)
## S3 method for class 'documents'
get_ngrams(document, ...)
## S3 method for class 'corpus'
get_ngrams(document, ...)
 | 
| document | A document as returned by the  | 
| ... | Any other positional arguments. | 
A tibble of ngrams and their occurences.
| 1 2 3 4 5 6 7 8 9 10 11 | ## Not run: 
init_textanalysis()
# build document
doc <- string_document("This is a document.")
# extract n-grams
get_ngrams(doc)
get_ngrams(doc, 2L)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.