如何访问 RTextTools 中的停用词列表?
How do I access the list of stop words in RTextTools?
虽然已经有关于向 RTextTools 提供自定义停用词列表的答案,但我想知道任何访问 existing/default 停用词列表的命令。
根据给定的 language
,例如tm::stopwords("german")
或 tm::stopwords("english")
:
head(tm::stopwords("french"))
# [1] "au" "aux" "avec" "ce" "ces" "dans"
stopwords(kind = "en") also helps.
虽然已经有关于向 RTextTools 提供自定义停用词列表的答案,但我想知道任何访问 existing/default 停用词列表的命令。
根据给定的 language
,例如tm::stopwords("german")
或 tm::stopwords("english")
:
head(tm::stopwords("french"))
# [1] "au" "aux" "avec" "ce" "ces" "dans"
stopwords(kind = "en") also helps.