Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Deep Learning for Language Workshop prepared for the AI For Social Good Summer Lab, 2018

License

Notifications You must be signed in to change notification settings

Maluuba/sentiment-analysis-workshop

Repository files navigation

sentiment-analysis-workshop

Deep Learning for Language Workshop prepared for the AI For Social Good Summer Lab, 2018

Contains a notebook and code for developing a sentiment analysis model on a subset of IMDB movie review data documented here

Pang, B., & Lee, L. (2004, July). A sentimental education: Sentiment analysis using subjectivity summarization based on minimum cuts. In Proceedings of the 42nd annual meeting on Association for Computational Linguistics (p. 271). Association for Computational Linguistics.

Setup and Requirements

  • Python 3.6
  • TensorFlow 1.8
  • Jupyter Notebook

Download and extract the pretrained model here.

Sample standalone script usage:

  1. train a model from scratch

python sentiment_rnn.py train --name experiment --base-dir /my/base/dir

  1. continue training a model

python sentiment_rnn.py train --base-dir /my/base/dir/experiment --continue-epoch 2

  1. runtime from an epoch

python sentiment_rnn.py runtime --base-dir /my/base/dir/experiment --continue-epoch 2

About

Deep Learning for Language Workshop prepared for the AI For Social Good Summer Lab, 2018

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published