All Projects → AnthonyMRios → adversarial-relation-classification

AnthonyMRios / adversarial-relation-classification

Licence: other
Unsupervised domain adaptation method for relation extraction

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to adversarial-relation-classification

SENet-for-Weakly-Supervised-Relation-Extraction
No description or website provided.
Stars: ✭ 39 (+116.67%)
Mutual labels:  nlp-machine-learning, relation-extraction
Atnre
Adversarial Training for Neural Relation Extraction
Stars: ✭ 108 (+500%)
Mutual labels:  nlp-machine-learning, relation-extraction
CAFE5
Version 5 of the CAFE phylogenetics software
Stars: ✭ 53 (+194.44%)
Mutual labels:  bioinformatics
Natural-Language-Processing
Contains various architectures and novel paper implementations for Natural Language Processing tasks like Sequence Modelling and Neural Machine Translation.
Stars: ✭ 48 (+166.67%)
Mutual labels:  nlp-machine-learning
companion
This repository has been archived, currently maintained version is at https://github.com/iii-companion/companion
Stars: ✭ 21 (+16.67%)
Mutual labels:  bioinformatics
OpenNRE for Chinese
OpenNRE for Chinese open relation extraction task in pytorch
Stars: ✭ 32 (+77.78%)
Mutual labels:  relation-extraction
sensim
Sentence Similarity Estimator (SenSim)
Stars: ✭ 15 (-16.67%)
Mutual labels:  nlp-machine-learning
CoNekT
CoNekT (short for Co-expression Network Toolkit) is a platform to browse co-expression data and enable cross-species comparisons.
Stars: ✭ 17 (-5.56%)
Mutual labels:  bioinformatics
orfipy
Fast and flexible ORF finder
Stars: ✭ 27 (+50%)
Mutual labels:  bioinformatics
calN50
Compute N50/NG50 and auN/auNG
Stars: ✭ 20 (+11.11%)
Mutual labels:  bioinformatics
biskit
A Python platform for Structural Bioinformatics
Stars: ✭ 47 (+161.11%)
Mutual labels:  bioinformatics
mview
MView extracts and reformats the results of a sequence database search or multiple alignment.
Stars: ✭ 23 (+27.78%)
Mutual labels:  bioinformatics
hotmap
WebGL Heatmap Viewer for Big Data and Bioinformatics
Stars: ✭ 13 (-27.78%)
Mutual labels:  bioinformatics
mulled
Mulled - Automatized Containerized Software Repository
Stars: ✭ 49 (+172.22%)
Mutual labels:  bioinformatics
DiagnoseRE
Source code and dataset for the CCKS201 paper "On Robustness and Bias Analysis of BERT-based Relation Extraction"
Stars: ✭ 23 (+27.78%)
Mutual labels:  relation-extraction
CATT
An ultra-sensitive and precise tool for characterizing T cell CDR3 sequences in TCR-seq and RNA-seq data.
Stars: ✭ 17 (-5.56%)
Mutual labels:  bioinformatics
nlp newsletter
Natural language processing (NLP) newsletter right on GitHub
Stars: ✭ 57 (+216.67%)
Mutual labels:  nlp-machine-learning
CENTIPEDE.tutorial
🐛 How to use CENTIPEDE to determine if a transcription factor is bound.
Stars: ✭ 23 (+27.78%)
Mutual labels:  bioinformatics
staramr
Scans genome contigs against the ResFinder, PlasmidFinder, and PointFinder databases.
Stars: ✭ 52 (+188.89%)
Mutual labels:  bioinformatics
dna-sculpture
3D printed sculpture of a DNA molecule, showing my own genome
Stars: ✭ 22 (+22.22%)
Mutual labels:  bioinformatics

Adversarial

This repo contains code for our unsupervised domain adaptation method for relation extraction.

Note: Examples of the data format can be found in the data/ folder.

Usage

Training

python train_final_cnn.py --num_epochs 50 --checkpoint_dir /checkpoint/dir/experiments/checkpoints/ --checkpoint_name my_checkpoint --min_df 5 --lr 0.001 --penalty 0. --adv_train_data_X  /my/data/data1/all_train.txt --adv_test_data_X  /my/data/biogrid_train_test/all_test.txt --test_data /my/data/test_data.txt --train_data /my/data/train_data.txt --train_data_X /my/data/data2/train.txt --val_data_X /my/data/data2/test.txt --num_iters 10000 --num_disc_updates 1 --emb_reg --adv --pos_reg --hidden_state 128 --adv --seed 42
usage: train_final_cnn.py [-h] [--num_epochs NUM_EPOCHS]
                          [--hidden_state HIDDEN_STATE]
                          [--checkpoint_dir CHECKPOINT_DIR]
                          [--checkpoint_name CHECKPOINT_NAME]
                          [--min_df MIN_DF] [--lr LR] [--penalty PENALTY]
                          [--train_data_X TRAIN_DATA_X]
                          [--train_data TRAIN_DATA] [--test_data TEST_DATA]
                          [--val_data_X VAL_DATA_X]
                          [--adv_train_data_X ADV_TRAIN_DATA_X]
                          [--adv_test_data_X ADV_TEST_DATA_X]
                          [--num_iters NUM_ITERS] [--grad_clip GRAD_CLIP]
                          [--num_disc_updates NUM_DISC_UPDATES] [--seed SEED]
                          [--adv] [--emb_reg] [--pos_reg]

Train Neural Network.

optional arguments:
  -h, --help            show this help message and exit
  --num_epochs NUM_EPOCHS
                        Number of updates to make.
  --hidden_state HIDDEN_STATE
                        LSTM hidden state size.
  --checkpoint_dir CHECKPOINT_DIR
                        Checkpoint directory.
  --checkpoint_name CHECKPOINT_NAME
                        Checkpoint File Name.
  --min_df MIN_DF       Min word count.
  --lr LR               Learning Rate.
  --penalty PENALTY     Regularization Parameter.
  --train_data_X TRAIN_DATA_X
                        Training Data.
  --train_data TRAIN_DATA
                        Training Data.
  --test_data TEST_DATA
                        Training Data.
  --val_data_X VAL_DATA_X
                        Validation Data.
  --adv_train_data_X ADV_TRAIN_DATA_X
                        Validation Data.
  --adv_test_data_X ADV_TEST_DATA_X
                        Validation Data.
  --num_iters NUM_ITERS
                        Validation Data.
  --grad_clip GRAD_CLIP
                        Gradient Clip Value.
  --num_disc_updates NUM_DISC_UPDATES
                        Number of time to update discriminator.
  --seed SEED           Random seed.
  --adv                 Adversarial training?
  --emb_reg             Regularize word embeddings?
  --pos_reg             Regularize pos embeddings?

Acknowledgements

Anthony Rios, Ramakanth Kavuluru, and Zhiyong Lu. "Generalizing Biomedical Relation Classification with Neural Adversarial Domain Adaptation". Bioinformatics 2018

@article{rios2018advrel,
  title={Generalizing Biomedical Relation Classification with Neural Adversarial Domain Adaptation},
  author={Rios, Anthony and Kavuluru, Ramakanth and Lu, Zhiyong},
  journal={Bioinformatics},
  year={2018}
}

Written by Anthony Rios (anthonymrios at gmail dot com)

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].