-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何构建"实体-属性-属性值"的三元组 #26
Comments
能给出一个具体的例子吗 |
非常感谢您的回复。比如"姚明出生于上海,身高2.26米,司职中锋,他在NBA和麦迪是队友"。 可以构建出"姚明-队友-麦迪"这样的三元组,可以再增加"姚明-出生地-上海"这样的三元组。 此外,还想请问下作者,我看你的分类分为"主体“和"客体",实体类型如何加入呢?比如"姚明”,"麦迪“是人名,"中锋"是篮球阵容位置,"上海"是个地点。 |
你可以再加一个实体类型识别的实体识别,最后将结果进行整合。 |
看看是不是transformers版本的问题,transformers==4.5.0
先看数据预处理还有问题没,没有再将DataLoader里面num_workers设置为1,再有错就是数据集的问题,再检查看看。 |
你好,可以分享提示一下加入实体分类和属性的代码吗? |
参考主页的另外一个关系抽取的。 |
可以参考pytorch_bert_bilstm_crf那个仓库改一改。 |
作者您好!
The text was updated successfully, but these errors were encountered: