首页 > 解决方案 > 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>

标签: pythonjupyter-notebookgoogle-colaboratorynlu

解决方案


推荐阅读