Giter Site home page Giter Site logo

williamgjn / biocreativevii_drugprot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lingluodlut/biocreativevii_drugprot

0.0 0.0 0.0 24 KB

A Sequence Labeling Framework for Extracting Drug-Protein Relations

License: Apache License 2.0

Python 100.00%

biocreativevii_drugprot's Introduction

NLM-NCBI team @ BioCreative VII DrugProt Track


This repo contains the source code for extracting drug-protein relations in BioCreative VII DrugProt Track. We propose a novel sequence labeling framework to the drug-protein relation extraction. Our method achieves the top performance in the BioCreative VII DrugProt Track. Please refer to our paper for more details:

Dependency package

The codes have been tested using Python3.7 on CentOS and uses the following dependencies on a CPU and GPU:

Model preparation

To run this code, you need to first download the model file ( the best single model, i.e., BioM-ELECTRAL with P->D), then unzip and put the model folder into the root folder.

Extracting drug-protein relations from free text

You can use our trained model to extract drug-protein relations from biomedical texts by the /src/DrugProt_Tagging_PD.py file.

The file requires 2 parameters:

  • --input, -i, help="input file"
  • --output, -o, help="output file to save the extracted relations"

The input file need to provide the text and named entity recognition (NER) information. There is one example in the /example/ folder.

Example:

$ python DrugProt_Tagging_PD.py -i ../example/example_input.tsv -o ../example/example_out.tsv

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.