Giter Club home page Giter Club logo

aa-nps-analysis's Introduction

NPS Sentiment Analysis

Introduction

This project is my solution to annotate sentiments of NPS comments using pre-trained language models.

Library/Environment

This is not meant to work in one single environment. I switched between two environments (one using Pytorch, one using Tensorflow) to make everything run smoothly.

  • Pytorch
  • Fastai
  • Tensorflow 2.0
  • Tensorflow hub

Results

This is not a fair comparison and please take it only as a reference. I personally like the small model (gnews-swivel) provided by Tensorflow hub as it is very easy to train and still powerful enough to give decent result also it makes deployment much easier.

Model Accuracy Precision Recall F1 Score
ULMFIT (Fastai) 0.97 0.98 0.92 0.95
gnews-swivel (TF Hub) 0.93 0.93 0.84 0.88
nnlm-en-50 (TF Hub) 0.96 0.96 0.90 0.93
nnlm-en-128 (TF Hub) 0.96 0.94 0.93 0.94
AutoML (Google) 0.96/0.93 0.98/0.81 0.87/0.96 0.92/0.88

Note: Since (AA custom trained) AutoML spills out Neutral on top of Positive and Negative, so it is very challenging to do unbiased comparison. Hence I recorded two values where 1st values are metrics considering Neutral to be Negative while the 2nd values are metrics considering Neutral to be Positive. Also, AutoML is used to test against only half of the human labelled dataset. Personally, I'm also more into the idea of putting Neutral as Negative as most of the Neutral comments are suggestions to further improve customers experience and we should take that seriously and improve accordingly.

Shoutout

Shoutout to all AA ASL 2018 members!

Disclaimer

This project is not associated with my current employer. This project is solely initiated in attempt to beat Google AutoML.

aa-nps-analysis's People

Contributors

jjkoh95 avatar

Stargazers

 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.