Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_region_matrix

Get Matrix with Regions for Strucs.


Description

The return value is an integer matrix with the left and right corpus positions of the strucs in columns one and two, respectively.

Usage

get_region_matrix(corpus, s_attribute, strucs,
  registry = Sys.getenv("CORPUS_REGISTRY"))

Arguments

corpus

a CWB corpus

s_attribute

a structural attribute

strucs

strucs

registry

the registry directory

Value

A matrix with integer values indicating left and right corpus positions (columns 1 and 2, respectively).

Examples

registry <- if (!check_pkg_registry_files()) use_tmp_registry() else get_pkg_registry()
y <- get_region_matrix(
  corpus = "REUTERS", s_attribute = "id",
  strucs = 0L:5L, registry = registry
  )

RcppCWB

'Rcpp' Bindings for the 'Corpus Workbench' ('CWB')

v0.3.2
GPL-3
Authors
Andreas Blaette [aut, cre], Bernard Desgraupes [aut], Sylvain Loiseau [aut], Oliver Christ [ctb], Bruno Maximilian Schulze [ctb], Stefan Evert [ctb], Arne Fitschen [ctb], Jeroen Ooms [ctb], Marius Bertram [ctb]
Initial release
2021-02-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.