Description Usage Arguments Value Examples
Locate part of speech tags within a tag_pos
object.
1 |
x |
A |
tags |
The tags (or regex of |
negate |
logical. If |
regex |
logical. If |
logical |
logical. If |
... |
Other arguments passed to |
Returns a list of locations (integer or logical) of part of speech tags as vectors.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | data(presidential_debates_2012_pos)
library(dplyr)
presidential_debates_2012_pos %>%
locate_tags(c("NN", "NNP", "NNPS", "NNS"))
presidential_debates_2012_pos %>%
locate_tags(c("NN", "NNP", "NNPS", "NNS"), logical=FALSE)
presidential_debates_2012_pos %>%
locate_tags("NN", regex=TRUE)
presidential_debates_2012_pos %>%
locate_tags("NN(\\b|[^S])", regex=TRUE)
presidential_debates_2012_pos %>%
locate_tags(c("NN", "NNP", "NNPS", "NNS"), negate=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.