-
Notifications
You must be signed in to change notification settings - Fork 1
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
Call to deprecated x$ntokens
in textplot_xray.R
#15
Comments
We'd need to see your complete code and output to know what is happening here, including your package version numbers. Can you add those please? |
Of course. I am using the latest versions. Here is a minimal example. The text is the Iliad, and the keyword is Achilles' name.
The environment is the following:
The output is a normal graph in RStudio's "Plots" pane and this warning in the console:
|
Can you supply a link to |
I could, but I thought an even simpler example would be an easier way for you to test. I have the same warning with the following code: library(tidyverse)
library(quanteda)
library(quanteda.textplots)
test <- "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit."
test <- corpus(test)
test <- tokens(test)
kwic(test, pattern = "ipsum") |>
textplot_xray() I get this in the console:
|
Thanks, got it. I'll track it down and stop the warning shortly. |
To use an older script I am learning about the 3.0 version of
quanteda
and its companion packages.I see that
textplot_xray.R
raises the following warning:Leaving an issue here, although I am sure you will at some point update your code.
The text was updated successfully, but these errors were encountered: