【论文解读】Document-Level Relation Extraction with Adaptive Thresholding and Localized论文解读加跑代码

基于自适应阈值和局部上下文池的文档级关系提取

论文翻译http://ir.dlut.edu.cn/info/1007/1359.htm

pip install apex==0.1 -i Simple Index --trusted-host pypi.douban.com

报错:

问题解决:

git config --global --unset http.https://github.com.proxy

参考链接:

GnuTLS recv error (-110): The TLS connection was non-properly terminated

报错:

问题解决:

git clone GitHub - NVIDIA/apex: A PyTorch Extension: Tools for easy mixed precision and distributed training in Pytorch

cd apex

git checkout f3a960f80244cf9e80558ab30f7f7e8cbf03c0a0

python setup.py install --cuda_ext --cpp_ext

pip3 install -v --no-cache-dir ./

参考链接:

Apex安装失败

遇到问题)安装 apex(已解决)

wandb报错:

wandb: WARNING W&B installed but not logged in. Run wandb login or set the WANDB_API_KEY env variable.

需要注册登录这个服务器获取到api key才可以使用

报错:TypeError: Descriptors cannot not be created directly.

If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.

If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

TypeError:不能直接创建描述符。

如果此调用来自_pb2.py文件,则生成的代码已过期,必须使用protoc>=3.19.0重新生成。

protoc

如果你不能立即再生你的质子,其他一些可能的解决办法是:

1.将protobuf封装降级至3.20.x或更低。

2.设置PROTOCOL_BUFFERS_PYTHON_ECTION=PYTHON(但这将使用纯PYTHON解析,速度会慢得多)。

pip install protobuf==3.19.0

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值