The cqi_struc2cpos function returns a pair of corpus positions:
the corpus positions of the first token (immediately following the
start tag) and of the last token (immediately preceding the end tag) of
the token region.
The cqi_struc2str function returns a string.
Details
The structural attributes correspond to XML pairs of tags in the
corpus. Matching pairs of XML start and end tags are encoded as token
regions. The struc parameter is the index of a particular pair
of tags. The cqi_struc2cpos function associates the corpus
positions of the specified pair.
# NOT RUN {# }# NOT RUN {for (i in0:10) {
print(cqi_struc2cpos("DICKENS.novel", i))
}
cqi_struc2str("DICKENS.novel_title", 1:10)
cqi_struc2str("DICKENS.chapter_title", 1:10)
# }