All Projects → bekou → Multihead_joint_entity_relation_extraction

bekou / Multihead_joint_entity_relation_extraction

Implementation of our papers Joint entity recognition and relation extraction as a multi-head selection problem (Expert Syst. Appl, 2018) and Adversarial training for multi-context joint entity and relation extraction (EMNLP, 2018).

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Multihead joint entity relation extraction

FDDC
Named Entity Recognition & Relation Extraction 实体命名识别与关系分类
Stars: ✭ 29 (-90.37%)
Mutual labels:  relation-extraction
adversarial-relation-classification
Unsupervised domain adaptation method for relation extraction
Stars: ✭ 18 (-94.02%)
Mutual labels:  relation-extraction
Multiple Relations Extraction Only Look Once
Multiple-Relations-Extraction-Only-Look-Once. Just look at the sentence once and extract the multiple pairs of entities and their corresponding relations. 端到端联合多关系抽取模型,可用于 http://lic2019.ccf.org.cn/kg 信息抽取。
Stars: ✭ 269 (-10.63%)
Mutual labels:  relation-extraction
Relation-Extraction-Transformer
NLP: Relation extraction with position-aware self-attention transformer
Stars: ✭ 63 (-79.07%)
Mutual labels:  relation-extraction
DiagnoseRE
Source code and dataset for the CCKS201 paper "On Robustness and Bias Analysis of BERT-based Relation Extraction"
Stars: ✭ 23 (-92.36%)
Mutual labels:  relation-extraction
PSPE
Pretrained Span and span Pair Encoder, code for "Pre-training Entity Relation Encoder with Intra-span and Inter-spanInformation.", EMNLP2020. It is based on our NERE toolkit (https://github.com/Receiling/NERE).
Stars: ✭ 17 (-94.35%)
Mutual labels:  relation-extraction
VERSE
Vancouver Event and Relation System for Extraction
Stars: ✭ 13 (-95.68%)
Mutual labels:  relation-extraction
Oie Resources
A curated list of Open Information Extraction (OIE) resources: papers, code, data, etc.
Stars: ✭ 283 (-5.98%)
Mutual labels:  relation-extraction
OpenNRE for Chinese
OpenNRE for Chinese open relation extraction task in pytorch
Stars: ✭ 32 (-89.37%)
Mutual labels:  relation-extraction
PCNN
A neural architecture for relation extraction task implemented in Tensorflow.
Stars: ✭ 89 (-70.43%)
Mutual labels:  relation-extraction
Recurrent Interaction Network EMNLP2020
Here is the code for the paper ``Recurrent Interaction Network for Jointly Extracting Entities and Classifying Relations'' accepted by EMNLP2020.
Stars: ✭ 13 (-95.68%)
Mutual labels:  relation-extraction
IE Paper Notes
Paper notes for Information Extraction, including Relation Extraction (RE), Named Entity Recognition (NER), Entity Linking (EL), Event Extraction (EE), Named Entity Disambiguation (NED).
Stars: ✭ 14 (-95.35%)
Mutual labels:  relation-extraction
knowledge-graph-nlp-in-action
从模型训练到部署,实战知识图谱(Knowledge Graph)&自然语言处理(NLP)。涉及 Tensorflow, Bert+Bi-LSTM+CRF,Neo4j等 涵盖 Named Entity Recognition,Text Classify,Information Extraction,Relation Extraction 等任务。
Stars: ✭ 58 (-80.73%)
Mutual labels:  relation-extraction
PathNRE
Source code and dataset of EMNLP2017 paper "Incorporating Relation Paths in Neural Relation Extraction".
Stars: ✭ 42 (-86.05%)
Mutual labels:  relation-extraction
Tacred Relation
PyTorch implementation of the position-aware attention model for relation extraction
Stars: ✭ 271 (-9.97%)
Mutual labels:  relation-extraction
KGPool
[ACL 2021] KGPool: Dynamic Knowledge Graph Context Selection for Relation Extraction
Stars: ✭ 33 (-89.04%)
Mutual labels:  relation-extraction
CREST
A Causal Relation Schema for Text
Stars: ✭ 19 (-93.69%)
Mutual labels:  relation-extraction
Opennre
An Open-Source Package for Neural Relation Extraction (NRE)
Stars: ✭ 3,442 (+1043.52%)
Mutual labels:  relation-extraction
Languagecrunch
LanguageCrunch NLP server docker image
Stars: ✭ 281 (-6.64%)
Mutual labels:  relation-extraction
comb dist direct relex
Combining Distant and Direct Supervision for Neural Relation Extraction
Stars: ✭ 33 (-89.04%)
Mutual labels:  relation-extraction

Joint entity recognition and relation extraction as a multi-head selection problem

Implementation of the papers Joint entity recognition and relation extraction as a multi-head selection problem and Adversarial training for multi-context joint entity and relation extraction.

Requirements

  • Ubuntu 16.04
  • Anaconda 5.0.1
  • Numpy 1.14.1
  • Gensim 3.4.0
  • Tensorflow 1.5.0
  • PrettyTable 0.7.2

Task

Given a sequence of tokens (i.e., sentence), (i) give the entity tag of each word (e.g., NER) and (ii) the relations between the entities in the sentence. The following example indicates the accepted input format of our multi-head selection model:

0	Marc		B-PER		['N']					[0]		
1	Smith		I-PER 		['lives_in','works_for']		[5,11]
2 	lives		O		['N']					[2]
3	in		O		['N']					[3]
4	New		B-LOC		['N']					[4]
5	Orleans		I-LOC		['N']					[5] 
6	and		O		['N']					[6]
7	is		O		['N']					[7]
8	hired		O		['N']					[8]
9	by		O		['N']					[9]
10	the		O		['N']					[10]
11  government		B-ORG		['N']					[11]
12	.		O		['N']					[12]

Configuration

The model has several parameters such as:

  • EC (entity classification) or BIO (BIO encoding scheme)
  • Character embeddings
  • Ner loss (softmax or CRF)

that could be specified in the configuration files (see config).

Run the model

./run.sh

More details

Commands executed in ./run.sh:

  1. Train on the training set and evaluate on the dev set to obtain early stopping epoch python3 train_es.py
  2. Train on the concatenated (train + dev) set and evaluate on the test set until either (1) the max epochs or (2) the early stopping limit (specified by train_es.py) is exceeded python3 train_eval.py

Notes

Please cite our work when using this software.

Giannis Bekoulis, Johannes Deleu, Thomas Demeester, Chris Develder. Joint entity recognition and relation extraction as a multi-head selection problem. Expert Systems with Applications, Volume 114, Pages 34-45, 2018

Giannis Bekoulis, Johannes Deleu, Thomas Demeester, Chris Develder. Adversarial training for multi-context joint entity and relation extraction, In the Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), 2018

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].