powered by
partition
corpus
Get terms in partition or corpus.
# S4 method for partition terms(x, p_attribute, regex = NULL)# S4 method for subcorpus terms(x, p_attribute, regex = NULL)# S4 method for corpus terms(x, p_attribute, regex = NULL, robust = FALSE)# S4 method for character terms(x, p_attribute, regex = NULL, robust = FALSE)
# S4 method for subcorpus terms(x, p_attribute, regex = NULL)
# S4 method for corpus terms(x, p_attribute, regex = NULL, robust = FALSE)
# S4 method for character terms(x, p_attribute, regex = NULL, robust = FALSE)
A corpus, partition or subcorpus object, or a length-one character with a corpus id.
subcorpus
character
The p-attribute to for which to retrieve results (length-one character vector).
Regular expression(s) to filter results (character vector).
A logical value, whether to check for potential failures.
logical
use(pkg = "RcppCWB", corpus = "REUTERS") r <- partition("REUTERS", id = "144") words <- terms(r, "word") terms(r, p_attribute = "word", regex = ".*il.*")
Run the code above in your browser using DataLab