Closed ablaette closed 6 months ago
The core of the issue is that the ranges()
method was not failsafe when no query matches were obtained. So you saw the original error here.
dt <- corpus("REUTERS") %>%
ranges(query = '"adf"', cqp = TRUE) %>%
as.data.table()
Fixed this. No warnings thrown by the hits()
-method.