All Projects → allenai → comb_dist_direct_relex

allenai / comb_dist_direct_relex

Licence: Apache-2.0 License
Combining Distant and Direct Supervision for Neural Relation Extraction

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to comb dist direct relex

FDDC
Named Entity Recognition & Relation Extraction 实体命名识别与关系分类
Stars: ✭ 29 (-12.12%)
Mutual labels:  relation-extraction
CHILDES-SRL
Research code for generating semantic role labels for CHILDES
Stars: ✭ 14 (-57.58%)
Mutual labels:  allennlp
biome-text
Custom Natural Language Processing with big and small models 🌲🌱
Stars: ✭ 62 (+87.88%)
Mutual labels:  allennlp
Relation-Extraction-Transformer
NLP: Relation extraction with position-aware self-attention transformer
Stars: ✭ 63 (+90.91%)
Mutual labels:  relation-extraction
MetaLifelongLanguage
Repository containing code for the paper "Meta-Learning with Sparse Experience Replay for Lifelong Language Learning".
Stars: ✭ 21 (-36.36%)
Mutual labels:  relation-extraction
OpenNRE for Chinese
OpenNRE for Chinese open relation extraction task in pytorch
Stars: ✭ 32 (-3.03%)
Mutual labels:  relation-extraction
KGPool
[ACL 2021] KGPool: Dynamic Knowledge Graph Context Selection for Relation Extraction
Stars: ✭ 33 (+0%)
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 (+75.76%)
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 (-57.58%)
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 (-48.48%)
Mutual labels:  relation-extraction
allennlp-optuna
⚡️ AllenNLP plugin for adding subcommands to use Optuna, making hyperparameter optimization easy
Stars: ✭ 33 (+0%)
Mutual labels:  allennlp
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 (-60.61%)
Mutual labels:  relation-extraction
adversarial-relation-classification
Unsupervised domain adaptation method for relation extraction
Stars: ✭ 18 (-45.45%)
Mutual labels:  relation-extraction
PathNRE
Source code and dataset of EMNLP2017 paper "Incorporating Relation Paths in Neural Relation Extraction".
Stars: ✭ 42 (+27.27%)
Mutual labels:  relation-extraction
allennlp-book
本リポジトリは「AllenNLP入門」のソースコード置き場です。
Stars: ✭ 37 (+12.12%)
Mutual labels:  allennlp
athnlp-labs
Athens NLP Summer School Labs
Stars: ✭ 41 (+24.24%)
Mutual labels:  allennlp
DiagnoseRE
Source code and dataset for the CCKS201 paper "On Robustness and Bias Analysis of BERT-based Relation Extraction"
Stars: ✭ 23 (-30.3%)
Mutual labels:  relation-extraction
acl19 subtagger
Code for ACL '19 paper: Towards Improving Neural Named Entity Recognition with Gazetteers
Stars: ✭ 33 (+0%)
Mutual labels:  allennlp
trapper
State-of-the-art NLP through transformer models in a modular design and consistent APIs.
Stars: ✭ 28 (-15.15%)
Mutual labels:  allennlp
CREST
A Causal Relation Schema for Text
Stars: ✭ 19 (-42.42%)
Mutual labels:  relation-extraction

Combining Distant and Direct Supervision for Neural Relation Extraction

This is code for our NAACL 2019 paper on combining distant and direct supervision to improve relation extraction. The code is implemented using PyTorch and AllenNLP.

Running The Code

After cloning this repository, follow the steps below for training and prediction.

  1. Install requirements (mainly AllenNLP)
pip install -r requirements.txt
  1. Use the following scrip to start training. Make sure to check and edit the parameters in the training script. The default parameters will train the model for one epoch on a subset of the dataset.
./scripts/train.sh serialization_dir
  1. To run the trained model for prediction,
allennlp predict serialization_dir/model.tar.gz tests/fixtures/data.txt --include-package relex --cuda-device 0 --batch-size 32 --use-dataset-reader --predictor relex --output-file predictions.json

predictions.json contains model predictions for the examples provided in tests/fixtures/data.txt

Citation

@inproceedings{Beltagy2019Comb,
  title={Combining Distant and Direct Supervision for Neural Relation Extraction},
  author={Iz Beltagy and Kyle Lo and Waleed Ammar},
  year={2019},
  booktitle={NAACL}
}
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].