• Stars
    star
    178
  • Rank 213,769 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 6 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Joint Extraction of Entities and Relations Based on cnn+rnn

Joint extraction of entities and relations-pytorch+CNNs+LSTM

Sorry,this repository is no longer maintained.

This project is based on Deep Active Learning for Named Entity Recognition
and Joint Extraction of Entities and Relations Based on a Novel Tagging Scheme

Dataset

NYT-CoType

Requirements

1)python             3.6
2)pytorch            1.0.0
3)numpy              1.14.5
4)pickle

file

./data: data file + word2vec
./data.py:proces data file and save as binary file
./nodel.py: main model
./predict.py: not used in this project
./stats.py:statistics the data,not import in this project
./utils.py:define classes to keep wordvec
./model.pt:the model file
./record.tcv:the train record
./train.py: train file
./conv_net:CNN model

how to run:

python word2vec.py
python data
python train.py

others:

i upload data and model to google drive:https://drive.google.com/drive/folders/1WWKkvwtbg5fLmh3CnjPC2luxyHooyvmR?usp=sharing