各个标签的意义如下:
具体的srl介绍参考这个:https://zhuanlan.zhihu.com/p/35789254
我通过Allennlp的SRL工具生成的角色标注的例子如下:
原句:‘Everyone really likes the newest benefits’
{‘verbs’: [{‘verb’: ‘likes’,
‘description’: ‘[ARG0: Everyone] [ARGM-ADV: really] [V: likes] [ARG1: the newest benefits]’,
‘tags’: [‘B-ARG0’, ‘B-ARGM-ADV’, ‘B-V’, ‘B-ARG1’, ‘I-ARG1’, ‘I-ARG1’]}],
‘words’: [‘Everyone’, ‘really’, ‘likes’, ‘the’, ‘newest’, ‘benefits’]}
其中description描述了各个部分对应的标签,而tag表示的不同,前面有BIO的标签:比如B-V,B-ARG0等。 这个意思是对应的B代表开始,I代表中间,O代表结尾。
施事者:ARG0: Everyone
开始 B-ARG0:Everyone (仅一个单词所以只有B-)
状语:ARGM-ADV: really
开始: B-ARGM-ADV:really
谓语 动词 V: likes
开始: B-V
受事着ARG1: the newest benefits
开始 the:B-ARG1
中间 newest:I-ARG1
中间 benefits:I-ARG1