Git Product home page Git Product logo

absa_keras's Issues

准确率问题

您好,我用您的代码跑了这几个数据集,发现实现结果跟Paper上的低了1%或者2%。请问是什么问题?感谢回复

Run issue

Hi,

I tried to run this code but I got this error

Screen Shot 2021-02-11 at 8 03 37 AM

could someone help plz

Thank u

Some questions

1. why use SpatialDropout1D not dropout ?
2. why right part use go_backwords=True not pad_sequence(padding='post', truncating='post')
3. why left part ended with $t$+(aspect words length) and right part start from left of $t$?
4.  ATAE paper mentioned 'tanh(Wx Hn+Wp r)' in your code using Activation('tanh')(Add()([v1, v2])), this need think?

train_model 'cabasc' can't run

Hi,

I ran train.py of the previous commit, but only 'cabasc' got an error as follows:

tensorflow.python.framework.errors_impl.InvalidArgumentError: Matrix size-incompatible: In[0]: [2336,300], In[1]: [1324,1324] [[{{node model_1/content_attention_1/MatMul_1}}]] [[{{node metrics/acc/Mean}}]]

At that time, the code toggle comments on most of train_model(...) and just ran fixed word/aspect embedding part, i.e.

config.word_embed_trainable = False
config.aspect_embed_trainable = False
train_model('laptop/term', 'laptop', 'word', 'td_lstm')
train_model('laptop/term', 'laptop', 'word', 'tc_lstm')
train_model('laptop/term', 'laptop', 'word', 'ae_lstm')
train_model('laptop/term', 'laptop', 'word', 'at_lstm')
train_model('laptop/term', 'laptop', 'word', 'atae_lstm')
train_model('laptop/term', 'laptop', 'word', 'memnet')
train_model('laptop/term', 'laptop', 'word', 'ram')
train_model('laptop/term', 'laptop', 'word', 'ian')
# train_model('laptop/term', 'laptop', 'word', 'cabasc')

Only 'cabasc' was toggled comment and did not plot on the results of combining ELMo Embedding as well.

So I guess that 'cabasc' can not run in this condition?

New Dataset

Dear author(s)

What great work! I was cloning your codes, and it was running very well. I plan to run these codes using my own datasets according to my research. However, I have some questions:

  1. May I directly replace the new dataset in folder data?
  2. The data must be in XML format, isn't it?
  3. Which part command should I change when the new dataset is used?

Thank you in advance.

regards,
Novi

word_glove.npy file not found

When I am trying to run train.py It is showing me the error

File "train.py", line 183, in <module>
    train_model('twitter', 'twitter', 'word', 'atae_lstm')
  File "train.py", line 46, in train_model
    model = SentimentModel(config)
  File "C:\Users\papa\Documents\ABSA_Keras\models.py", line 75, in __init__
    self.config.word_embed_type))
  File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\lib\npyio.py", line 415, in load
    fid = open(os_fspath(file), "rb")
FileNotFoundError: [Errno 2] No such file or directory: './data/twitter/word_glove.npy'

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.