SarcasmGeneration-ACL2020代码执行记录

本文为论文:Reverse, Retrieve, and Rank for Sarcasm Generation with Commonsense Knowledge的代码https://github.com/tuhinjubcse/SarcasmGeneration-ACL2020的运行改bug记录。

环境配置问题:

问题:Error message with nltk.sentiment.vader in Python

解决方案:Error message with nltk.sentiment.vader in Python - Stack Overflow

问题:运行nltk示例 Resource u'tokenizers punkt english.pickle' not found解决

解决方案:运行nltk示例 Resource u'tokenizers punkt english.pickle' not found解决 - 简书

问题:Resource wordnet not found

解决方案:Resource wordnet not found_饮冰l的博客-CSDN博客

问题:ImportError: No module named 'yaml'

解决方案:pip3 install pyyaml

问题:安装pytorch1.3.1失败

解决方案:安装1.4.0替代

问题:from pattern.en import conjugate get zipfile.BadZipFile error

解决方案:from pattern.en import conjugate get zipfile.BadZipFile error · Issue #252 · clips/pattern · GitHub

其他问题

问题:URL of ATOMIC dataset is not available

解决方案:URL of ATOMIC dataset is not available · Issue #44 · atcbosselut/comet-commonsense · GitHub

问题:bash scripts/setup/get_model_files.sh出错

解决方案:GitHub - openai/finetune-transformer-lm: Code and model for the paper "Improving Language Understanding by Generative Pre-Training"即将bash scripts/setup/get_model_files.sh文件中下载路径下的.git去掉

问题:

 解决方案:

[解决] python读取文件出错:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4018: ordinal_the Blog of 等不到天亮丶等时光-CSDN博客

问题:Cannot uninstall ‘certifi‘. It is a distutils installed project

解决方案:

Cannot uninstall ‘certifi‘. It is a distutils installed project_深度检测的博客-CSDN博客

pip install certifi --ignore-installed

再执行想执行的命令

问题:module 'torch.nn' has no attribute 'GELU'

解决方案:

https://github.com/pytorch/fairseq/issues/2510 最后一个解决方案

问题:AttributeError: module 'torch.jit' has no attribute 'is_tracing'

解决方案:https://github.com/facebookresearch/detectron2/issues/2150 升级到pytorch1.6

问题:pattern安装问题

解决方案:安装pattern出错mysql_config not found_ltochange的博客-CSDN博客

问题:spacy安装问题

解决方案:spacy包安装问题_Michael_Lzy的博客-CSDN博客_spacy安装报错

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值