Learn R Programming

polmineR (version 0.7.0)

getTokenStream: Get Token Stream Based on Corpus Positions.

Description

Turn regions of a corpus defined by corpus positions into the original text.

Usage

getTokenStream(.Object, ...)
"getTokenStream"(.Object, corpus, pAttribute, encoding = NULL, collapse = NULL, beautify = TRUE, cpos = FALSE, cutoff = NULL)
"getTokenStream"(.Object, ...)
"getTokenStream"(.Object, left = NULL, right = NULL, ...)
"getTokenStream"(.Object, pAttribute, collapse = NULL, cpos = FALSE, ...)
"getTokenStream"(.Object, pAttribute = "word", ...)

Arguments

.Object
an object of class matrix or partition
...
further arguments
corpus
the CWB corpus
pAttribute
the pAttribute to decode
encoding
encoding to use
collapse
character string length 1
beautify
logical, whether to adjust whitespace before and after interpunctation
cpos
logical, whether to return cpos as names of the tokens
cutoff
maximum number of tokens to be reconstructed
left
left corpus position
right
right corpus position