Giter Site home page Giter Site logo

cdr_re's Introduction

Pytorch Implementation for Document-level Relation Extraction with Graph State LSTM and Contextual Word Embedding

Introduction

We address the problem of Document-Level N-ary Relation Extraction with a graph-based Long-short term memory network that utilizes a unified dependency-structure of a document, combined with state of the art pre-trained contextual embedding for the Biomedical Domain.

Our model was trained in a end-to-end manner and use whole information from all mention pairs in the document to make the final prediction

drawing

Dataset

We use BioCreative5 CDR to train, develop and evaluate our model. The CDR5 dataset contains 1500 documents (500 for training, 500 for development, and 500 for testing) annotated in Pubtator format, all entities relation was labeled at abstract-level instead of mention-level. We train our model with the training set and utilize the dev set to find the best parameters, then we use both the training set and dev set to train our model, and finally, we evaluate our model on the test set.

Training

Please intall all prerequisite packages via requirements file

    pip install -r requirements.txt

All configurations of our model was decribed in the config.json file. To train our model, you can run the following command.

    cd src
    python train.py --config ./data/config.json

Result

Precision Recall F1
Our Model 52.41 71.51 60.35
Our Model + NER 60.09 64.54 62.23

cdr_re's People

Contributors

huyquangdao avatar

Stargazers

Bravo avatar

Watchers

James Cloos avatar  avatar

cdr_re's Issues

config中的pkl文件

你好,我想问下config里面的pkl文件是预训练的elmo词向量文件,还是基于文本训练后的得到的文件,想问下能否提供下content里面的文件,不胜感谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.