问题标签 [cld2]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python-3.x - Polyglot 中是否有办法将希伯来语文本的语言代码从“iw”永久“修复”为“he”?
我想在 python 3.6 中使用 Polyglot 对希伯来语文本进行简单的情感分析。问题是 Polyglot 将文本语言代码识别为“iw”而不是“he”,因此无法处理它。
如图所示:
使用 polyglot package for Named Entity Recognition in hebrew我已经添加hint_language_code = 'he'
到Text
函数调用中,但它只更改文本的初始形式,而不是其子形式(如句子或单词)。
例如:
输入:
输出:
如何将文本language_code
从永久更改'iw'
为'he'
?
r - 如何获得与“cld”功能的显着差异?
我正在尝试运行 cld 函数以显示显着差异。但最后这显示: UseMethod("cld") 中的错误:没有适用于 'cld' 的方法应用于类 "c('emm_list', 'list')" 的对象。如果有人可以帮助我,我将不胜感激