Learn R Programming

polmineR (version 0.7.4)

pAttributes: Get p-attributes.

Description

In a CWB corpus, every token has positional attributes. While s-attributes cover a range of tokens, every single token in the token stream of a corpus will have a set of positional attributes (such as part-of-speech, or lemma). The available p-attributes are returned by the pAttributes-method.

Usage

pAttributes(.Object, ...)

# S4 method for character pAttributes(.Object, pAttribute = NULL)

Arguments

.Object

a character vector (length 1) or partition object

...

further arguments

pAttribute

p-attribute to decode

References

Stefan Evert & The OCWB Development Team, CQP Query Language Tutorial, http://cwb.sourceforge.net/files/CQP_Tutorial.pdf.

Examples

Run this code
# NOT RUN {
   use("polmineR.sampleCorpus")
   pAttributes("PLPRBTTXT")
# }

Run the code above in your browser using DataLab