Turn regions of a corpus defined by corpus positions into the original text.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | getTokenStream(.Object, ...)
## S4 method for signature 'numeric'
getTokenStream(.Object, corpus, pAttribute,
encoding = NULL, collapse = NULL, beautify = TRUE, cpos = FALSE,
cutoff = NULL)
## S4 method for signature 'matrix'
getTokenStream(.Object, ...)
## S4 method for signature 'character'
getTokenStream(.Object, left = NULL, right = NULL,
...)
## S4 method for signature 'partition'
getTokenStream(.Object, pAttribute, collapse = NULL,
cpos = FALSE, ...)
## S4 method for signature 'Regions'
getTokenStream(.Object, pAttribute = "word", ...)
|
.Object |
an object of class |
... |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.