PolMine / RcppCWB

'Rcpp' Bindings for the 'Corpus Workbench' (CWB)
Other
2 stars 3 forks source link

`get_region_matrix()` returns arbitrary values for negative struc values #87

Closed ablaette closed 1 year ago

ablaette commented 1 year ago

If the input vector to get_region_matrix() includes negative values, arbitrary regions are returned. See the following example.

library(RcppCWB)
library(polmineR)
use("GermaParl2")

RcppCWB::get_region_matrix(
  corpus = "GERMAPARL2",
  registry = RcppCWB::corpus_registry_dir("GERMAPARL2"),
  s_attribute = "ne",
  strucs = c(-1, 1:3)
)