电脑配置: python3.5 有虚拟环境
首先安装 OpenKE 软件安装包
git clone -b OpenKE-PyTorch https://github.com/thunlp/OpenKE
"
remote: Enumerating objects: 1033, done.
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed"
出现了以上的报错,查询了之后,发现是缓冲区溢出了,
纠正方法:
git config --global http.postBuffer 524288000
remote: Enumerating objects: 1033, done.
remote: Total 1033 (delta 0), reused 0 (delta 0), pack-reused 1033
Receiving objects: 100% (1033/1033), 276.84 MiB | 84.00 KiB/s, done.
Resolving deltas: 100% (501/501), done.
没有报错
cd OpenKE # 进入OpenKE 文件夹下
bash make.sh
第一步 安装module OpenkE 完成
训练知识图谱模型—linux shell 中输入代码训练
参考的是一篇简书翻译的OpenKE 主页上的内容,附上链接