PolMine / RcppCWB

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

unreasonable values of `cl_cpos2lbound()` and `cl_cpos2rbound()` of `cpos` is outside strut #78

Closed ablaette closed 1 year ago

ablaette commented 1 year ago

This is not yet a fully reproducible example, but consider this.

get_region_matrix(corpus = "GERMAPARL2", s_attribute = "ne", strucs = 0:10)
RcppCWB::cl_cpos2lbound(corpus = "GERMAPARL2", s_attribute = "ne", cpos = 111)

[1] 8

RcppCWB::cl_cpos2rbound(corpus = "GERMAPARL2", s_attribute = "ne", cpos = 111)

[1] 170374808

I am using GermaParl v2.0.0.