GithubHelp home page GithubHelp logo

yulinwang-001 / text-classification-pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prakashpandey9/text-classification-pytorch

0.0 0.0 0.0 32 KB

Text classification using deep learning models in Pytorch

License: MIT License

Python 100.00%

text-classification-pytorch's Introduction

Text-Classification-Pytorch

Description

This repository contains the implmentation of various text classification models like RNN, LSTM, Attention, CNN, etc in PyTorch deep learning framework along with a detailed documentation of each of the model.

Text Classification is one of the basic and most important task of Natural Language Processing. In this repository, I am focussing on one such text classification task and that is Sentiment Analysis. So far I have covered following six different models in this repo.

  • RNN
  • LSTM
  • LSTM + Attention
  • Self Attention
  • CNN
  • RCNN

Requirements

  • Python==3.6.6
  • PyTorch==0.4.0
  • torchtext==0.2.3

Downloads and Setup

Once you clone this repo, run the main.py file to process the dataset and to train the model.

$ python main.py

References

  • A Structured Self-Attentive Sentence Embedding : Paper
  • Convolutional Neural Networks for Sentence Classification : Paper
  • Recurrent Convolutional Neural Networks for Text Classification : Paper

License

MIT

text-classification-pytorch's People

Contributors

prakashpandey9 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.