GithubHelp home page GithubHelp logo

aspect-sentiment-analysis's People

Contributors

dut-liuyang 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

Watchers

 avatar

aspect-sentiment-analysis's Issues

ValueError: Layer weight shape (4583, 300) not compatible with provided weight shape (5804, 300)

Hi, I got the following message when running Main.py, it seems to be the weight shape problem , any idea on solving it? thanks :
Traceback (most recent call last):
File "Main.py", line 36, in
num_words=4582) # 5144 4582 // # 1523 // 1172
File "/home/syl/Aspec-level/2018-CONLL-HAPN/Aspect-Sentiment-Analysis-master/lib/Model.py", line 63, in build_model
sentence_embedding = sentence_embedding_layer(sentence_input) # (?, 78, 300)
File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 583, in call
self.set_weights(self._initial_weights)
File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 1201, in set_weights
'provided weight shape ' + str(w.shape))
ValueError: Layer weight shape (4583, 300) not compatible with provided weight shape (5804, 300)

data2input error

Hi,

thank u for sharing ur code with us

I tried to reproduce the results but I got this error when executing the data2input file

Screen Shot 2021-04-21 at 2 12 01 PM

thank u

运行Main.py时报错

你好,请问一下这个报错应该怎么改?
ValueError: A Concatenate layer requires inputs with matching shapes except for the concat axis. Got inputs shapes: [(None, 78, 300), (None, 82, 600)]

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.