Closed lepennec closed 5 years ago
thanks for the report. will be looking in to it but you can also easily fetch this in your script as in
x <- " "
if(nchar(gsub("[[:space:]]", "", x) == 0)){
stop("no tokens in x")
}else{
pattern_pos(x, "english")
}
Closing as it's up to the user to handle such cases without tokens.
As explained in the title,
This is due to the fact that there is no token in the string and this corner case is not handled by the wrapper.
Yours,
Erwan