You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the kwic function to find keywords in context. My object size is 429MB. R popped up an error "Error: cannot allocate vector of size 2.0 Gb". I don't know how to fix this error.
Reproducible code
Please paste minimal code that reproduces the bug. If possible, please upload the data file as .rds.
Cannot say anything precisely without knowing what are the corpus and keywords, but you should check if some of your regex are causing too many matches. Try index() to check this.
Describe the bug
I used the kwic function to find keywords in context. My object size is 429MB. R popped up an error "Error: cannot allocate vector of size 2.0 Gb". I don't know how to fix this error.
Reproducible code
Please paste minimal code that reproduces the bug. If possible, please upload the data file as
.rds
.Expected behavior
I have done with another object size of 446MB and the above-mentioned code work well, even though the size is bigger.
## System information
Please run
sessionInfo()
and paste the output.The text was updated successfully, but these errors were encountered: