Alternatives To Ei
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Pytorch Sentiment Analysis2,905
2 years ago16mitJupyter Notebook
Tutorials on getting started with PyTorch and TorchText for sentiment analysis.
7 months ago5apache-2.0Jupyter Notebook
Korean BERT pre-trained cased (KoBERT)
Getting Things Done With Pytorch873
2 years ago13apache-2.0Jupyter Notebook
Jupyter Notebook tutorials on solving real-world problems with Machine Learning & Deep Learning using PyTorch. Topics: Face detection with Detectron 2, Time Series anomaly detection with LSTM Autoencoders, Object Detection with YOLO v5, Build your first Neural Network, Time Series forecasting for Coronavirus daily cases, Sentiment Analysis with BERT.
Post Tuto Deployment269
4 years ago2mitPython
Build and deploy a machine learning app from scratch 🚀
2 years ago2mitPython
Sentiment analysis neural network trained by fine-tuning BERT, ALBERT, or DistilBERT on the Stanford Sentiment Treebank.
Pytorch Nlp Notebooks199
4 years ago1Jupyter Notebook
Learn how to use PyTorch to solve some common NLP problems with deep learning.
Pytorch Sentiment Neuron171
5 years ago9mitPython
Deploy Bert For Sentiment Analysis With Fastapi129
a year ago6mitPython
Deploy BERT for Sentiment Analysis as REST API using FastAPI, Transformers by Hugging Face and PyTorch
Fine Grained Sentiment126
2 years agomitPython
A comparison and discussion of different NLP methods for 5-class sentiment classification on the SST-5 dataset.
Hierarchical Sentiment96
4 years ago1mitPython
Hierarchical Models for Sentiment Analysis in Pytorch
Alternatives To Ei
Select To Compare

Alternative Project Comparisons

Learning Explicit and Implicit Structures for Targeted Sentiment Analysis

This page contains the code used in the work "Learning Explicit and Implicit Structures for Targeted Sentiment Analysis" published at EMNLP 2019.


  1. Usage
  2. SourceCode
  3. Data
  4. Citation
  5. Credits


Prerequisite: Python (3.5 or later), PyTorch (1.0 or later)

Run the following command to try out our model in the paper.





After the training is complete, type the following command to display the result on test data. The performance outputed by is shown as below.

tail -n 50 2019_en_ei.log
tail -n 50 2019_es_ei.log


The source code is written in PyTorch.


The data is stored in "data/ts" folder for English and Spanish.

The embedding files need to be stored in the folder "embedding".

Download English Embedding (Glove 100) []

Download Spanish Embedding []


If you use this software for research, please cite our paper as follows:

author = "Li, Hao and Lu, Wei", 
title = "Learning Explicit and Implicit Structures for Targeted Sentiment Analysis", 
booktitle = "Proc. of EMNLP2019", 
year = "2019", 


The code in this repository are based on Neural StatNLP framework: sutd-statnlp/statnlp-neural

Email to [email protected] if any inquery.

Popular Pytorch Projects
Popular Sentiment Projects
Popular Machine Learning Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Sentiment Analysis