当前位置:网站首页>Thesis reading_ Relation extraction_ CASREL
Thesis reading_ Relation extraction_ CASREL
2022-06-23 05:05:00 【xieyan0811】
Introduce
English title :A Novel Cascade Binary Tagging Framework for Relational Triple Extraction
Chinese title : A cascaded binary annotation framework for extracting relational triples
Address of thesis :https://aclanthology.org/2020.acl-main.136.pdf
field : natural language processing , knowledge
Time of publication :2019
author :Zhepei Wei, Jilin University
Source :ACL
Quantity cited :3
Code and data :
https://github.com/xiangking/ark-nlp
https://github.com/weizhepei/CasRel
Reading time :2022.06.17
Journal entry
It mainly solves the problem of triple overlap , Compared with the previous model , Major adjustments have been made in the architecture .
Introduce
knowledge Information extraction (IE) It is an important part of constructing knowledge map from text . The specific operation is to extract relational triples from the text , It contains : The subject s, Relationship r, The object o. In the early days, pipes were generally used pipeline Method : First identify the entity in the sentence , Then establish a relationship for each entity pair , This may cause error propagation ; Later, there have been some methods based on artificial construction , Extract a joint model of entities and relationships ; After the popularity of the deep learning model , The model can build its own features , It makes relation extraction develop further .
Triple overlap problem , namely : Multiple relational triples in a sentence share the same entity . This problem has not been well solved , because , It breaks the assumptions made earlier to simplify the problem : Every token Marked only once , And each entity pair contains only one relationship .

chart -1 There are three cases :Normal Under the circumstances , The two triples identified do not overlap each other ;EPO Under the circumstances , There are many relationships between two entities ;SEO Under the circumstances , There are multiple overlapping triples .
The previous method separates entity annotation and relationship extraction , The interaction between the two steps is ignored . Due to the uneven distribution of relationship categories , And for a single relationship , Entity pairs do not satisfy the specified relationship in most cases , A large number of negative examples have been formed , There is also the lack of sufficient instances of each category . in addition , The effect of separating logic to deal with overlapping triples is not good .
In order to solve the technical problem , It is proposed that CASREL frame , Take relation as the mapping function from subject to object . It is divided into two steps : The first step is to identify all possible subjects in the sentence ; The second step is to probe various relationships and their corresponding objects for each topic . Finally, an end-to-end cascaded double label is designed ( Subject tag , Relational object labels ) frame .
Method
set up D As the training set ,x For a single piece of training data ,T For all triples contained therein :

Derive from the chain rule , Final , Split the extraction triplet into three parts , First , Search for the subject s; Then in the text x and s Under the condition of , Traverse all possible relationships r, Calculate the corresponding object o Probability of occurrence ; In the section on the right ,R\Tj|s Indicates a relationship that did not occur ,o∅ Is an empty object , That is to say, no corresponding object can be found for an impossible relationship .
To do so , First, it can directly optimize the evaluation criteria at the final triple level , The second allows entities to act as multiple triples , Mutual interference , Supports overlapping ; Third , By the type (3) Inspired a new extraction method , The classification of entity pairs , It becomes a mapping problem .
BERT Encoder
Using pre-trained BERT As a feature extractor , Convert text into vectors . See BERT The paper .
Cascade decoder
The core idea is to extract triples through two-step cascade : Find the subject first , Then find the corresponding relation and object of each subject .

Marked subject
The lower part of the figure is used to identify all subjects in the input sentence , adopt BERT Coding into vectors h, Then incoming Subject Tagger, For each token Check whether it is the start position or the end position of the topic .

For multi topic detection , You need to pair the start and end positions , Use the latest start-end Matching method , Ignore end stay start What happened before . If the prediction is correct ,start And end Will appear in pairs .
Specify the relationship marker object
The upper part of the figure shows the process of identifying the object , chart -2 in , Color distinguishes the different subjects recognized , Like orange Jackie R. Brown When recognized as a subject , It's a person's name , So there is no Capital of The relationship between , Although it may exist Work in Relationship , But there is no mention of . therefore , The reaction is also orange in the upper part of the figure , Yes Birth_place Relationship found two possible objects , Namely Washington and United States Of America.
except BERT The vector representation of the output , The vector representation of the subject is also taken into account v:

For each topic , Use the same decoder . Since the subject may be more than one word , Length is not fixed , Use the method of taking the mean value of the vector to calculate the vector of the subject in the above formula v.
When the relationship does not exist , The probability calculation method is as follows :

For an empty object , Marking of each start and end position y All for 0. Pictured -2 in Work in All corresponding positions are 0( See the description below for details ).
Objective function
Objective function J(Θ) The calculation method is as follows :

experiment
Data sets
Two public datasets were used in the experiment NYT and WebNLG. Relationship types are distributed differently :

experimental result
To compare the effects of different encoders , stay CASREL Three kinds of encoders are tested in , At the bottom is the use of pre training BERT, The best effect ,random No pre training BERT Model ,LSTM Don't use BERT. Even without predictive training BERT,CASREL The model is also better than other models , In the process of the training BERT The model effect is further improved .

When triples overlap and a sentence contains multiple triples ,CASREL The effect is especially obvious .

边栏推荐
- OGNL Object-Graph Navigation Language
- Decompile
- Shadertoy基础教学01、画圆(smoothstep()函数讲解)
- ICer技能01正则匹配
- Abnova liquidcell negative enrichment cell separation and recovery system
- 微信小程序;AI智能配音助手
- Project summary 1 (header file, switch, &, bit variables)
- 微信小程序:微信也可以发闪照了闪照制作生成微信小程序源码下载,自定义闪照时间
- 微信小程序:老年祝福短视频
- Welcome to the CSDN markdown editor
猜你喜欢

How to solve multi-channel customer communication problems in independent stations? This cross-border e-commerce plug-in must be known!

go学习记录二(Window)

【毕业季_进击的技术er】送别过去两年迷茫的自己。重整旗鼓,大三我来啦

【Proteus仿真】Arduino UNO+PCF8574+LCD1602+MPX4250电子秤

接收传来得文件并下载(简单用法)a标签

Separate use of alertmanager alarms and use of Prometheus configuration alarm rules

Actual combat | multiple intranet penetration through Viper

Current relay jdl-1002a

Less than a year after development, I dared to ask for 20k in the interview, but I didn't even want to give 8K after the interview~

Laravel 8.4 routing problem. At the end is the cross reference table on the left side of the editor, which can be understood by Xiaobai
随机推荐
[paper reading] semi supervised learning with ladder networks
接收传来得文件并下载(简单用法)a标签
美团好文:从预编译的角度理解Swift与Objective-C及混编机制
Const understanding II
Mini Homer——几百块钱也能搞到一台远距离图数传链路?
Chrome debugging tips
How to make social media the driving force of cross-border e-commerce? This independent station tool cannot be missed!
Alkylation process test questions and simulation test in 2022
Apache atlas quick start
Official download and installation of QT and QT vs tools plug-ins
Usage of apipost interface test ------ get
What are the types of independent station chat robots? How to quickly create your own free chat robot? It only takes 3 seconds!
Shadertoy basic teaching 02. Drawing smiling faces
Question bank and answers of 2022 hoisting machinery safety management examination
ICER skill 02makefile script self running VCs simulation
【毕业季_进击的技术er】送别过去两年迷茫的自己。重整旗鼓,大三我来啦
ApiPost接口测试的用法之------Get
Current relay hdl-a/1-110vdc-1
Parameter passing of 18 generator function
Altium designer 09 screen printing displays a green warning near the pad. How to prevent it from alarming?