nlp-beginner-finish
nlp-beginner-finish copied to clipboard
torchcrf 是大佬自己写的吗
不是哈,是调用了pytorch-crf这个库,这个库是基于AllenNLP实现的CRF包。
看到了 谢谢发自我的iPhone------------------ 原始邮件 ------------------发件人: Alic-yuan [email protected]发送时间: 2020年4月29日 11:17收件人: Alic-yuan/nlp-beginner-finish [email protected]抄送: Charlie [email protected], Author [email protected]主题: 回复:[Alic-yuan/nlp-beginner-finish] torchcrf 是大佬自己写的吗 (#2) 不是哈,是调用了pytorch-crf这个库,这个库是基于AllenNLP实现的CRF包。
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/Alic-yuan/nlp-beginner-finish/issues/2#issuecomment-620968150", "url": "https://github.com/Alic-yuan/nlp-beginner-finish/issues/2#issuecomment-620968150", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
ModuleNotFoundError: No module named 'torchcrf' 为啥呢
我安装了pytorch-crf, 导入还是有问题。 咋回事呢??
https://github.com/kmkurn/pytorch-crf/blob/master/torchcrf/init.py 不用安装了 自己直接把源码下载下来搞
ModuleNotFoundError: No module named 'torchcrf' 为啥呢
你可以参考一下我的git 我把作者这个重写了一下 不用装torchcrf 我直接把源码下载下来了 https://github.com/shawroad/NLP_pytorch_project/tree/master/NER