All Projects → hpanwar08 → sentiment-analysis-torchtext

hpanwar08 / sentiment-analysis-torchtext

Licence: MIT license
Seniment Analysis in Torchtext

Programming Languages

Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to sentiment-analysis-torchtext

Pytorch Sentiment Analysis
Tutorials on getting started with PyTorch and TorchText for sentiment analysis.
Stars: ✭ 3,209 (+16789.47%)
Mutual labels:  sentiment-analysis, torchtext
SA-DL
Sentiment Analysis with Deep Learning models. Implemented with Tensorflow and Keras.
Stars: ✭ 35 (+84.21%)
Mutual labels:  sentiment-analysis
text-analysis
Weaving analytical stories from text data
Stars: ✭ 12 (-36.84%)
Mutual labels:  sentiment-analysis
bert-sentiment
Fine-grained Sentiment Classification Using BERT
Stars: ✭ 49 (+157.89%)
Mutual labels:  sentiment-analysis
twitter sentiment challenge
The code uses the tweepy library to access the Twitter API and the TextBlob library to perform Sentiment Analysis on each Tweet.
Stars: ✭ 14 (-26.32%)
Mutual labels:  sentiment-analysis
Subject-and-Sentiment-Analysis
汽车行业用户观点主题及情感识别
Stars: ✭ 24 (+26.32%)
Mutual labels:  sentiment-analysis
Emotion-Cause-Analysis-Papers
Collection of papers on Emotion Cause Analysis
Stars: ✭ 63 (+231.58%)
Mutual labels:  sentiment-analysis
semeval22 structured sentiment
SemEval-2022 Shared Task 10: Structured Sentiment Analysis
Stars: ✭ 67 (+252.63%)
Mutual labels:  sentiment-analysis
grasp
Essential NLP & ML, short & fast pure Python code
Stars: ✭ 58 (+205.26%)
Mutual labels:  sentiment-analysis
overview-and-benchmark-of-traditional-and-deep-learning-models-in-text-classification
NLP tutorial
Stars: ✭ 41 (+115.79%)
Mutual labels:  sentiment-analysis
Sentiment-Analysis-of-Netflix-Reviews
Sentiment Analysis LSTM recurrent neural network's.
Stars: ✭ 51 (+168.42%)
Mutual labels:  sentiment-analysis
Sentiment-analysis-amazon-Products-Reviews
NLP with NLTK for Sentiment analysis amazon Products Reviews
Stars: ✭ 37 (+94.74%)
Mutual labels:  sentiment-analysis
Sentiment-Analysis-with-Python
Lectures in Urban Data Science Lab, Seoul
Stars: ✭ 19 (+0%)
Mutual labels:  sentiment-analysis
text2emoji
Predict an emoji that is associated with a text
Stars: ✭ 30 (+57.89%)
Mutual labels:  sentiment-analysis
Whatsapp-analytics
performing sentiment analysis on the whatsapp chats.
Stars: ✭ 20 (+5.26%)
Mutual labels:  sentiment-analysis
Paribhasha
paribhasha.herokuapp.com/
Stars: ✭ 21 (+10.53%)
Mutual labels:  sentiment-analysis
TextMood
A Xamarin + IoT + Azure sample that detects the sentiment of incoming text messages, performs sentiment analysis on the text, and changes the color of a Philips Hue lightbulb
Stars: ✭ 52 (+173.68%)
Mutual labels:  sentiment-analysis
Scrapy-tripadvisor-reviews
Using scrapy to scrape tripadvisor in order to get users' reviews.
Stars: ✭ 24 (+26.32%)
Mutual labels:  sentiment-analysis
sentiment-analysis
🎈 A Node.js AFINN-111 based sentiment analysis module
Stars: ✭ 26 (+36.84%)
Mutual labels:  sentiment-analysis
visualization
Text visualization tools
Stars: ✭ 18 (-5.26%)
Mutual labels:  sentiment-analysis

Sentiment Analysis in Torch Text

Sentiment analysis is a classification task where each sample is assigned a positive or negative label.

This repo contains the code for the this blog.

Typical components of classification task in NLP

  1. Preprocessing and tokenization
  2. Generating vocabulary of unique tokens and converting words to indices
  3. Loading pretrained vectors e.g. Glove, Word2vec, Fasttext
  4. Padding text with zeros in case of variable lengths
  5. Dataloading and batching
  6. Model creation and training

Why use torchtext

Torchtext provide set of classes that are useful in NLP tasks. These classes takes care of first 5 points above with very minimal code.

Prerequisites

What is covered in the notebook

  1. Train validation split
  2. Define how to process data
  3. Create torchtext dataset
  4. Load pretrained word vectors and building vocabulary
  5. Loading the data in batches
  6. Simple GRU model
  7. GRU model with concat pooling
  8. Training

Data Overview

Top 5 rows of dataset

Concat Pooling model architecture [2]

GRU model with concat pooling

References

[1] https://colah.github.io/posts/2015-08-Understanding-LSTMs/
[2] https://arxiv.org/abs/1801.06146

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].