I am new to quanteda and I have tried to get the Flesch’s Reading Ease Score readability index. I have 2 issues.
- I run “library(quanteda.textstats)” but I get the following messeges. Will it cause any problem to my output?
Error: package or namespace load failed for ‘quanteda.textstats’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘quanteda’ 3.3.1 is already loaded, but >= 4.0.0 is required
In addition: Warning message:
package ‘quanteda.textstats’ was built under R version 4.3.3
- After that, when I run the following codes on a set of individual PDF documents that saved in a subdirectory in my laptop.
rtext <- readtext::readtext("directory address/*")
quanteda::corpus((rtext[["text"]]))
textstat_readability(
rtext,
measure = "Flesch",
remove_hyphens = TRUE,
min_sentence_length = 1,
max_sentence_length = 10000,
intermediate = FALSE,
...
)
I get the this messege: Error: ‘…’ used in an incorrect context
Do the messeges I got are related? Any idea how can I do the readability analysis properly using quanteda?
Chee-Hong Law is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.