Description Usage Arguments Value Note Examples
uncovered
- Get logical vector of uncovered data from the original
text used to build the model.
get_uncovered
- Get text vector from the uncovered data of the original
text used to build the model.
1 2 3 | uncovered(x, ...)
get_uncovered(x, ...)
|
x |
A |
... |
ignored. |
uncovered
- Returns logical indeices of untagged/uncovered group variables.
get_uncovered
- Returns a vector of uncovered text from the
original data set used to train the model.
This is most useful when grouping.var = TRUE
and an id
variable
was created that corresponds to the text variable. This allows the user to
quickly grab the untagged text.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | library(dplyr)
untagged <- presidential_debates_2012 %>%
with(., term_count(dialogue, TRUE, list(manners = c("please|excuse|sorry")))) %>%
uncovered() %>%
{presidential_debates_2012[., "dialogue"]} %>%
unlist(use.names = FALSE)
## Shorthand equivalent to code chunk above
untagged <- presidential_debates_2012 %>%
with(., term_count(dialogue, TRUE, list(manners = c("please|excuse|sorry")))) %>%
get_uncovered()
frequent_terms(untagged)
search_term(untagged, colo("romney", "governor"))
search_term(untagged, colo("people")) %>%
frequent_terms()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.