GithubHelp home page GithubHelp logo

abdrahmansoltan / skimit Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 788 KB

NLP model to classify abstract sentences into the role they play (e.g. objective, methods, results, etc..) to enable researchers to skim through the literature and dive deeper when necessary.

Jupyter Notebook 32.71% Python 0.41% HTML 66.88%

skimit's Introduction

Skimit

NLP model to classify abstract sentences into the role they play (e.g. objective, methods, results, etc..) to enable researchers to skim through the literature and dive deeper when necessary.

Dataset Used

PubMed 200k RCT dataset

Some miscellaneous information:

  • PubMed 20k is a subset of PubMed 200k. I.e., any abstract present in PubMed 20k is also present in PubMed 200k.
  • PubMed_200k_RCT is the same as PubMed_200k_RCT_numbers_replaced_with_at_sign, except that in the latter all numbers had been replaced by @. (same for PubMed_20k_RCT vs. PubMed_20k_RCT_numbers_replaced_with_at_sign).

Models Tried on 10% of the 20k_Dataset

  • NaiveBiase Model -> 72% Accuracy
  • Conv1D Model -> 78% Accuracy
  • Model using pretrained token embedding ( Universal sentence embedding ) -> 75% Accuracy
  • Conv1D Model using character level embedding -> 73% Accuracy
  • Model with both token and charcter level embedding -> 76% Accuracy
  • Model with token, character and position level embedding ( https://arxiv.org/pdf/1612.05251.pdf ) -> 81% Accuracy
  • Model described in this paper with bert embedding -> 88% Accuracy
  • Model trained on 200k dataset reached 87.86% Accuracy

Final Results

F1_Results of all Models

Best Performong model Architecture

Packages Used

  • Tensorflow
  • tensorflow_text
  • tensorflow_hub
  • sklearn
  • Matplotlib
  • numpy
  • pandas
  • spaCy

Installation

pip install -r requirements.txt

Trained_model

Download model, unzip it and move it to Skimit\data\model:

  1. model trained on 20k >> f1= 0.846 https://drive.google.com/drive/folders/17DLDS6eqA_6oYpQJ1DGB171AtKFuVrjG?usp=sharing
  2. model trained on 200k >> f1= 0.880 https://drive.google.com/drive/folders/17DLDS6eqA_6oYpQJ1DGB171AtKFuVrjG?usp=sharing

Usage

Run

streamlit run app.py

skimit's People

Contributors

abdrahmansoltan avatar

Watchers

 avatar  avatar

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.