python - NLU的加载方法不能正常工作
问题描述
我在 colab 中运行此代码时遇到问题。我确实安装了所有要求。
'''
import nlu
nlu.load('bert').predict('He was suprised by the diversity of NLU')
''' 生成以下输出:
small_bert_L2_128 下载开始,这可能需要一些时间。<class 'AttributeError'> type object 'NluError' has no attribute ' set_missing_model_attributes ' 在加载和安装管道时出现问题。检查其他打印以获取更多信息以及详细模式。您是否使用了正确的模型参考?<nlu.NluError at 0x7fc3823bbb10>
解决方案
推荐阅读
- c# - 来自外部链接的 PhysicalFileResult 之后的 ASP.NET Core 重定向
- python - 使用 tensorflow 的句子相似度
- ios - 无法在 Jenkins Execute Shell 中使用 zsh/bash
- regex - 正则表达式匹配炒作之前的所有内容 - 多重匹配
- php - PHP getenv 总是返回 false
- javascript - 未捕获的 TypeError:c.getContext 不是函数
- python-3.x - 抓取并创建新的df
- reactjs - 自定义 Hook - 返回状态和设置状态
- git - 致命:无法访问“...”:请求的 URL 返回错误:403 Using Sourcetree with gitlab
- angular - 如何在角度指令中测试按键事件