terms | R Documentation |
partition
or corpus
.Get terms in partition
or corpus
.
## S4 method for signature 'partition'
terms(x, p_attribute, regex = NULL)
## S4 method for signature 'subcorpus'
terms(x, p_attribute, regex = NULL)
## S4 method for signature 'corpus'
terms(x, p_attribute, regex = NULL, robust = FALSE)
## S4 method for signature 'character'
terms(x, p_attribute, regex = NULL, robust = FALSE)
x |
A |
p_attribute |
The p-attribute to for which to retrieve results
(length-one |
regex |
Regular expression(s) to filter results ( |
robust |
A |
use(pkg = "RcppCWB", corpus = "REUTERS")
r <- partition("REUTERS", id = "144")
words <- terms(r, "word")
terms(r, p_attribute = "word", regex = ".*il.*")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.