我一直在犯错误
Error in checkForRemoteErrors(val) :
one node produced an error: arguments imply differing number of rows: 3, 0在尝试在check_spelling包中使用qdap时。所提供的数字3和0与下面提供的数据有关,但这只是一个大得多的拼写检查字符串的一个小示例,当我将较大的字符串传递给字符串以进行拼写检查和用作字典时,行号会发生变化。当它突然开始工作时,我偶尔会成功,但当我试图重复这个过程时,我又再次遇到同样的错误。
在使用check_spelling_interactive()函数时也会遇到相同的错误。
我的理解是,我想用作拼写检查和字典的两个单词都应该在字符向量中。
我更新了我的qdap版本。运行在Windows 7 64上,Version版本0.99.467,R版本3.2.1。
任何帮助都将是非常感谢的,因为我正在失去头发,我没有那么多的空闲。
library(qdap)
spellcheckstring = "universal motor vlb"
mydictionary = c("brake", "starter", "shock", "pad", "kit", "bore", "toyota", "ford", "pump", "nissan", "gas", "alternator", "switch")
class(spellcheckstring) # character
class(mydictionary) # character
check_spelling(spellcheckstring, dictionary = mydictionary)发布于 2015-11-06 02:27:04
字典太小了,当它被拆分(https://github.com/trinker/qdapTRUE)时,没有可能匹配这个字母。使用assume.first.correct=FALSE
check_spelling(spellcheckstring, dictionary = mydictionary, assume.first.correct=FALSE)版本2.2.5 (开发版本)自动强制执行assume.first.correct=FALSE,如果自定义字典中没有至少一个以所有26个字母开头的单词。
if (!require("pacman")) install.packages("pacman")
pacman::p_load_gh(
"trinker/qdapDictionaries",
"trinker/qdapRegex",
"trinker/qdapTools",
"trinker/qdap"
)https://stackoverflow.com/questions/33516466
复制相似问题