Git Product home page Git Product logo

aspect-based-sentiment-analysis's Introduction

Aspect-based-Sentiment-Analysis

Implementation of some aspect-based sentiment analysis models; based on car dataset/ laptop dataset; 3 classes

Models

Data Analysis

item value
training set 12813
valid/dev set 1602
test set 1602
char_vocab 2378
all_char_vocab 2379
aspect 20
aspect_text_char_vocab 69
char_max_len 127
< char_len = 0.991 110
aspect_text_char_max_len 19
< aspect_text_char_len = 0.978 18

outputs(performance)

  • random
model acc(on test) acc(on dev) macro-f1(test) macro-f1(dev)
atae_lstm 0.6536 0.6685 0.5952 0.6143
tsa 0.6654 0.6816 0.6194 0.6381
  • word2vector
model acc(on test) acc(on dev) macro-f1(test) macro-f1(dev)
atae_lstm 0.6704 0.6685 0.6351 0.6347
tsa 0.6710 0.6792 0.6296 0.6445
  • glove
model acc(on test) acc(on dev) macro-f1(test) macro-f1(dev)
atae_lstm 0.6461 0.6754 0.5863 0.6226
tsa 0.6567 0.6798 0.6198 0.6461

screenshots --> outputs file

str tree(run codes)

.
├── ckpt
|   ├── car    saved model files
|   ├── laptop
|   └── others
├── data
│   ├── car    preprocessed data files
|   ├── laptop
|   └── others
├── xxx.csv    csv files of pre & rl labels
├── config.py
├── data_loader.py
├── layers.py
├── models.py
├── preprocess.py
├── train.py
└── utils.py

car : char level / laptop : word level

aspect-based-sentiment-analysis's People

Contributors

leodpen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

chizala

aspect-based-sentiment-analysis's Issues

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.