GithubHelp home page GithubHelp logo

lingluodlut / kesacnn Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 24.6 MB

A domain Knowledge-enriched Self-Attention Convolutional Neural Network (KeSACNN) approach for PPI article classification.

License: Apache License 2.0

Python 100.00%

kesacnn's Introduction

KeSACNN


This repo contains the source code and dataset for the following papers:

Dependency package

KeSACNN uses the following dependencies:

Content

  • corpus

    • BioCreative II corpus
    • BioCreative III corpus
  • src

    • attention_keras.py: the self-attention layer
    • BiLSTM.py: a BiLSTM baseline
    • CNN-Kim.py: a CNN baseline proposed by Kim
    • SACNN.py: Our Self-Attention CNN model
    • KeSACNN-arc1.py: Our KeSACNN-I model
    • KeSACNN-arc2.py: Our KeSACNN-2 model

Feature embeddings

The trained feature embeddings can be downloaded from https://www.kaggle.com/lingluodlut/kesacnn.

Train a basic SACNN model

To train a basic SACNN model, you need to provide the file of the training set, testing set and word embedding, and run the SACNN.py script:

python SACNN.py  

Train a KeSACNN-I model

To train our KeSACNN-I model, you need to provide the file of the training set, testing set, word embedding, BEN embedding and CUI embedding, and run the KeSACNN-arc1.py script:

python KeSACNN-arc1.py 

Train a KeSACNN-II model

To train our KeSACNN-II model, you need to provide the file of the training set, testing set, word embedding, BEN embedding and CUI embedding, and run the KeSACNN-arc2.py script:

python KeSACNN-arc2.py 

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.