Giter Site home page Giter Site logo

ruidan / aspect-level-sentiment Goto Github PK

View Code? Open in Web Editor NEW
148.0 4.0 32.0 27.11 MB

Code and dataset for ACL2018 paper "Exploiting Document Knowledge for Aspect-level Sentiment Classification"

License: Apache License 2.0

Python 98.71% Shell 1.29%
aspect-based-sentiment-analysis knowledge-transfer

aspect-level-sentiment's Issues

missing a few training data ?

Thanks for sharing.
From the preprocessed data, I realized the counts of examples (from my script) are not the same as reported in the paper.

For example, the training data of SemEval 2014 is like this:
lt Counter({'positive': 987, 'negative': 866, 'neutral': 460})
res Counter({'positive': 2164, 'negative': 805, 'neutral': 633})

Did I make any mistake?

error when runing the code

Hi,

I got this error when trying to run the train.py file

TypeError: add_weight() got multiple values for keyword argument 'name'

ANy ideas plz

thank u

About the precision

hello, I modified the code to run with python3 and it can run, but I can't get the same precision you mentioned in the paper, the precision just was 50%, when I adjust the learning rate the precision improve to 67% but still has a gap with your experiment. I used your preprocessed_data. Do you have any idea about improving the precision? thank you!

Predicting output for new sentences with the new model

Hi,
I tried retraining the model, it went on training and showed the loss during every epoch but at the end of the training it didn't save anything (Model or Word vector file), which I could use for further predictions. Also is there a way to use model and find the sentiment of the input sentence?

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.