Learn R Programming

rcqp (version 0.5)

cqi_attributes: List the available attributes

Description

Get the list of the currently defined attributes in a given corpus.

Usage

cqi_attributes(corpus, type)

Arguments

corpus

(string) the name of the corpus (in uppercase letters).

type

(character) a character designating a type of attributes. Possible values are "a" for alignment attributes, "p" for positional attributes and "s" for structural attributes.

Value

cqi_attributes returns a list of strings which are the names of the requested attributes.

Details

For a specified corpus, this function lists the names of the different kinds of attributes used for the indexation. There are three kinds of attributes: positional, structural and alignment attributes (for aligned corpora).

References

http://cwb.sourceforge.net/documentation.php

See Also

cqi_attribute_size, cqi_structural_attribute_has_values.

Examples

Run this code
# NOT RUN {
cqi_attributes("DICKENS", "p")
cqi_attributes("DICKENS", "s")
cqi_attributes("DICKENS", "a")
# }

Run the code above in your browser using DataLab