Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with tokens() in v4.0 #2292

Closed
davidemorselli opened this issue Aug 29, 2023 · 1 comment
Closed

error with tokens() in v4.0 #2292

davidemorselli opened this issue Aug 29, 2023 · 1 comment

Comments

@davidemorselli
Copy link

I get the following error when tokenizing

my command is token <- tokens(threads$x, what="word",verbose = T, remove_separators = F)

threads$x is character vector in a data.table

the error is

Creating a tokens from a character object...
...starting tokenization
...tokenizing 1 of 1 blocks
...preserving hyphens
...preserving elisions
...preserving social media tags (#, @)
Error in stri_split_boundaries(x, type = rule) :
Illegal argument. (U_ILLEGAL_ARGUMENT_ERROR)

@koheiw
Copy link
Collaborator

koheiw commented Aug 30, 2023

If you are using Linux, it is likely that that your ICU library is very old. Try to install stringi with a newer library:

https://stringi.gagolewski.com/install.html#customising-the-build-process

@koheiw koheiw closed this as completed Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants