Rcpp wrappers for CWB Corpus Library functions

attribute_size(corpus, attribute, attribute_type, registry)

cpos2str(corpus, p_attribute, registry, cpos)

cpos2id(corpus, p_attribute, registry, cpos)

struc2cpos(corpus, s_attribute, registry, struc)

id2str(corpus, p_attribute, registry, id)

Arguments

corpus

The ID of a CWB corpus.

attribute

Either a positional, or a structural attribute.

attribute_type

Either "p" (positional attribute) or "s" (structural attribute).

registry

Path to the corpus registry.

p_attribute

A positional attribute.

cpos

An integer vector of corpus positions.

s_attribute

A structural attribute.

struc

An integer value with struc.

id

An integer vector with token ids.