View source: R/feature_preparation.r
get_doc_terms | R Documentation |
View term scores for a given document
get_doc_terms(dtm, docname = NULL, doc_i = NULL)
dtm |
A quanteda dfm |
docname |
name of document to select |
doc_i |
alternatively, select document by index |
A named vector with terms (names) and scores
get_doc_terms(rnewsflow_dfm, doc_i=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.