问题描述
我正在编写要合并到闪亮应用程序中的功能,该功能可以从一组预定义的文件中预测下一个单词。当我创建使用ngram预测下一个单词的函数时,
我遇到了这个错误
metrics.calinski_harabasz_score(X,labels)
这是我的R程序。我已经在另一个R脚本中创建了二元语法的三元语法和四元语法的单词,并将其保存为我在这里使用的rds文件。
x object of type 'closure' is not subsettable
i Input ..1 is top_n_rank(1,n).
Run rlang::last_error() to see where the error occurred.
In addition: Warning message:
In is.na(x) : is.na() applied to non-(list or vector) of type 'closure'
This is an snippet of the quad_words.rds
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)