Giter Site home page Giter Site logo

peace195 / aspect-based-sentiment-analysis Goto Github PK

View Code? Open in Web Editor NEW
107.0 8.0 38.0 61.83 MB

Aspect Based Sentiment Analysis

Home Page: https://peace195.github.io/choose-distinct-units-in-lstm/

License: GNU General Public License v3.0

Python 30.67% Makefile 0.90% Shell 4.05% C++ 36.39% Perl 0.84% MATLAB 3.76% C 23.40%
semeval2015 aspect-sentiment lstm-neural-networks tensorflow semeval2014 semeval2016 deep-learning bidirectional-lstm sentiment-extraction sentiment-embeddings

aspect-based-sentiment-analysis's Introduction

Peace195's github stats

aspect-based-sentiment-analysis's People

Contributors

peace195 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aspect-based-sentiment-analysis's Issues

Can't seem to replicate sentiment embedding

How did you obtain the sentiment embedding (sswe-u.txt)? I can't seem to find anything about it in the README, and the file isn't explained in the drive either. I am trying to replicate the results on a different language, so evidently I need to retrain the sentiment embeddings.

Also, how did you acquire the incremental/decremental/negative/positive/reverse/stop words?

Is this correct?

Hi, why do you use

sentiment = tf.multiply(sentiment, tf.expand_dims(self.tf_X_binary_mask, 2)) on line 178 in sa_aspect_oop.py? It seems highly influential on the results, and I wonder if it is right, since it seems to use the ground truth in the prediction?

cannot work

Environment:
python 2.7.13 (Anaconda)
tensorflow0.12.1
and I got this error:

Traceback (most recent call last):
File "/root/PycharmProjects/aspect-based-sentiment-analysis/code/sa_aspect_oop.py", line 392, in
main()
File "/root/PycharmProjects/aspect-based-sentiment-analysis/code/sa_aspect_oop.py", line 383, in main
model.modeling()
File "/root/PycharmProjects/aspect-based-sentiment-analysis/code/sa_aspect_oop.py", line 146, in modeling
X_train = tf.concat([self.tf_X_train, X_sent_for_word], 2)
File "/root/.pyenv/versions/anaconda2-5.0.0/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 1075, in concat
dtype=dtypes.int32).get_shape(
File "/root/.pyenv/versions/anaconda2-5.0.0/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 669, in convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/root/.pyenv/versions/anaconda2-5.0.0/lib/python2.7/site-packages/tensorflow/python/framework/constant_op.py", line 176, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "/root/.pyenv/versions/anaconda2-5.0.0/lib/python2.7/site-packages/tensorflow/python/framework/constant_op.py", line 165, in constant
tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape, verify_shape=verify_shape))
File "/root/.pyenv/versions/anaconda2-5.0.0/lib/python2.7/site-packages/tensorflow/python/framework/tensor_util.py", line 367, in make_tensor_proto
_AssertCompatible(values, dtype)
File "/root/.pyenv/versions/anaconda2-5.0.0/lib/python2.7/site-packages/tensorflow/python/framework/tensor_util.py", line 302, in _AssertCompatible
(dtype.name, repr(mismatch), type(mismatch).name))
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.

Should I change the version of TensorFlow? THANKS

Generate Corpus

Hi,

How to create 'Restaurants_corpus_for_word2vec.txt' file?

Thanks.

SyntaxError: 'continue' not properly in loop

mldl@ub1604:/ub16_prj/aspect-based-sentiment-analysis/code$ python sa_aspect_oop.py
Traceback (most recent call last):
File "sa_aspect_oop.py", line 15, in
import utils
File "/home/mldl/ub16_prj/aspect-based-sentiment-analysis/code/utils.py", line 30
continue
SyntaxError: 'continue' not properly in loop
mldl@ub1604:
/ub16_prj/aspect-based-sentiment-analysis/code$

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.