我想使用 Elmo 的 ElmoEmbedder。
要求:Python 3.6 - 较低版本的 Python 不起作用 AllenNLP 0.5.1 - 计算 ELMo 表示 Keras 2.2.0 - 用于创建 BiLSTM-CNN-CRF 架构
当我安装 allennlp 0.5.0 时,出现这样的错误。
ERROR: Could not find a version that satisfies the requirement torch==0.4.0 (from allennlp) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 1.7.0, 1.7.1, 1.8.0, 1.8.1) ERROR: No matching distribution found for torch==0.4.0
所以我安装了torch 0.4.0,但它给了我另一个这样的错误
ERROR: Could not find a version that satisfies the requirement torch==0.4.0 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 1.7.0, 1.7.1, 1.8.0, 1.8.1) ERROR: No matching distribution found for torch==0.4.0
那么,我该如何安装 allennlp 0.5.0?