terms: Get terms in 'partition' or corpus.

Description Usage Arguments Examples

Description

Get terms in partition or corpus.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S4 method for signature 'slice'
terms(x, p_attribute, regex = NULL, ...)

## 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 'character'
terms(x, p_attribute, regex = NULL, robust = FALSE, ...)

Arguments

x

an atomic character vector with a corpus id or partition object

p_attribute

the p-attribute to be analyzed

regex

regular expression(s) to filter results

...

for backward compatibility

robust

logical, whether to check for potential failures

Examples

1
2
3
4
5
6
7
8
use("polmineR")
session <- partition("GERMAPARLMINI", date = "2009-10-27")
words <- terms(session, "word")
terms(session, p_attribute = "word", regex = "^Arbeit.*")
terms(session, p_attribute = "word", regex = c("Arbeit.*", ".*arbeit"))

terms("GERMAPARLMINI", p_attribute = "word")
terms("GERMAPARLMINI", p_attribute = "word", regex = "^Arbeit.*")

polmineR documentation built on Oct. 23, 2020, 8:31 p.m.