Closed Ai-Sherry closed 2 years ago
File "/root/mashiqian/KeyWord/SIFRank_zh-master/key_word2.py", line 5, in <class 'torch.Tensor'>
is not a <class 'NoneType'>
.
不知道您的这个elmoformanylangs是哪个版本的呢
按照你的环境要求安装的,0.0.3版本
您好 问题解决了吗?我遇到了同样的问题
我在哈工大的issue里找到了这个问题:
https://github.com/HIT-SCIR/ELMoForManyLangs/issues/100
是overrides的版本问题,按照里面的提示已解决。
建议把overrides3.1.0加入环境需求
建议把overrides3.1.0加入环境需求 牛啊,伟大的神
Highway.forward: return type
<class 'torch.Tensor'>
is not a<class 'NoneType'>