regions_to_strucs: Get min and max strucs of s-attribute present in region

region_matrix_to_struc_matrixR Documentation

Get min and max strucs of s-attribute present in region

Description

Look up the minimum and maximum struc of a s-attribute within a region, including scenario of nested s-attributes. If there are no regions of the s-attribute within the region, NA values are returned.

Usage

region_matrix_to_struc_matrix(
  corpus,
  s_attribute,
  region_matrix,
  registry = NULL
)

region_to_strucs(corpus, s_attribute, region, registry = NULL)

Arguments

corpus

ID of a CWB corpus.

s_attribute

Name of structural attribute. The attribute may be nested.

region_matrix

A two-column matrix with regions, left corpus positions in column 1, right corpus positions in column 2.

registry

Path of the registry directory. If NULL (default), value of environment variable 'CORPUS_REGISTRY' will be used.

region

Vector with left and right corpus position of region.

Value

Depending whether input is a vector (argument region) or a matrix (argument region_matrix), a vector or a matrix.


RcppCWB documentation built on Sept. 24, 2024, 1:08 a.m.