Description Usage Arguments Value
Given a set of documents tagged with topics and a set of new documents, tags new documents by learning characteristics of topics from existing tagged documents.
1 2 3 4 5 6 7 | tag_smartly(
new_documents,
tagged_documents,
tags,
cutoff = NULL,
prop_training = 0.7
)
|
new_documents |
a character vector of documents to tag |
tagged_documents |
a character vector of documents |
tags |
a character vector of tags of the same length as tagged_documents |
cutoff |
numeric: what cutoff should be used for probability of being included in a topic? If NULL, finds the optimal cutoff for model accuracy in training data. |
prop_training |
numeric: what proportion of tagged_documents should be used for training? Remaining proportion will be used for model testing. |
a character vector of tags of length equal to new_documents
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.