Vivswan / Sentiment-Analysis-TreeLSTM

Pytorch implementation of Sentiment Classification in Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tree-Structured Long Short-Term Memory Networks

A PyTorch based implementation of Tree-LSTM from Kai Sheng Tai's paper Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks.

Requirements

  • PyTorch Deep learning library
  • tqdm: display progress bar
  • meowlogtool: a logger that write everything on console to file
  • Java >= 8 (for Stanford CoreNLP utilities)
  • Python >= 3

Usage

First run the script ./fetch_and_preprocess.sh

This downloads the following data:

and the following libraries:

Sentiment classification

python sentiment.py --name <name_of_log_file> --model_name <constituency|dependency> --epochs 10

About

Pytorch implementation of Sentiment Classification in Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks

License:Other


Languages

Language:Python 81.8%Language:Java 17.9%Language:Shell 0.3%