powered by
The return value is an integer matrix with the left and right corpus positions of the strucs in columns one and two, respectively.
get_region_matrix( corpus, s_attribute, strucs, registry = Sys.getenv("CORPUS_REGISTRY") )
A matrix with integer values indicating left and right corpus positions (columns 1 and 2, respectively).
a CWB corpus
a structural attribute
strucs
the registry directory
y <- get_region_matrix( corpus = "REUTERS", s_attribute = "id", strucs = 0L:5L, registry = get_tmp_registry() )
Run the code above in your browser using DataLab