nlp-beginner-finish icon indicating copy to clipboard operation
nlp-beginner-finish copied to clipboard

torchcrf 是大佬自己写的吗

Open lcyuanjiang opened this issue 4 years ago • 6 comments

lcyuanjiang avatar Apr 29 '20 02:04 lcyuanjiang

不是哈,是调用了pytorch-crf这个库,这个库是基于AllenNLP实现的CRF包。

Alic-yuan avatar Apr 29 '20 03:04 Alic-yuan

看到了 谢谢发自我的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" } } ]

lcyuanjiang avatar Apr 29 '20 03:04 lcyuanjiang

ModuleNotFoundError: No module named 'torchcrf' 为啥呢

flitdu avatar May 21 '20 02:05 flitdu

我安装了pytorch-crf, 导入还是有问题。 咋回事呢??

shawroad avatar Jun 29 '20 08:06 shawroad

https://github.com/kmkurn/pytorch-crf/blob/master/torchcrf/init.py 不用安装了 自己直接把源码下载下来搞

shawroad avatar Jun 29 '20 09:06 shawroad

ModuleNotFoundError: No module named 'torchcrf' 为啥呢

你可以参考一下我的git 我把作者这个重写了一下 不用装torchcrf 我直接把源码下载下来了 https://github.com/shawroad/NLP_pytorch_project/tree/master/NER

shawroad avatar Jun 30 '20 02:06 shawroad