AllenNLP遇到的一些问题

作者: 我的昵称违规了 | 来源:发表于2019-04-03 09:22 被阅读1次

在学习过程中Debug的一些问题记录

OSError: Unable to open file

在使用ElmoEmbedder的时候,

from allennlp.commands.elmo import ElmoEmbedder
ee = ElmoEmbedder()

报错

OSError: Unable to open file (truncated file: eof = 608905, sblock->base_addr = 0, stored_eof = 374434792)

原因很简单,预训练模型没有下载完成,而文件夹中已经有文件占用。
解决方法,找到~/.allennlp文件夹,清空里面缓存,重新运行上面代码。

相关文章

  • AllenNLP遇到的一些问题

    在学习过程中Debug的一些问题记录 OSError: Unable to open file 在使用ElmoEm...

  • AllenNlp工具包使用教程

    原文链接 Tutorials 入门 安装 Laziness in AllenNlp AllenNLP的流程 Tra...

  • AllenNLP

    How `subcommand' works? In subcommand.py: while in predic...

  • allennlp

    1.Demo 2.Demo

  • (Old) Recitation 10 | Representa

    AllenNLP https://piazza.com/cmu/fall2018/11777/resources ...

  • AllenNLP实例分析

    https://allennlp.org/tutorials给出一个句子(例如"The dog ate the a...

  • allennlp vs pytext

    Facebook开源了pytext,基于pytorch的nlp处理框架。需要在allennlp与pytext之间做...

  • AllenNLP 使用教程

    插播一条关于Allennlp 的库的基本用法的介绍 1 安装 2 基本使用方法 3 实例教学 本来呢是亦步亦趋的跟...

  • Ubuntu 安装AllenNLP

    更新:推荐使用docker 这样每个用户在docker下都有root权限 安装allennlp 只需要pip in...

  • Note - Pytorch + AllenNLP

    AllenNLP是基于pytorch 的NLP研究库,提供一些训练好的模型,对NLP过程中的数据预处理(读写数据集...

网友评论

    本文标题:AllenNLP遇到的一些问题

    本文链接:https://www.haomeiwen.com/subject/bqtabqtx.html