aspect-term-extraction's People
aspect-term-extraction's Issues
Compiling model problem
Hello,
I am trying to implement bi-lstm-crf-embedding.ipynb on my dataset using google colab. However, I have the following problem by compiling the model:
`---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in ()
10 model = TimeDistributed(Dense(50, activation="tanh"))(model) # a dense layer as suggested by neuralNer
11 crf = CRF(n_tags) # CRF layer
---> 12 out = crf(model) # output
13
14 model = Model(input, out)
4 frames
/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py in wrapper(*args, **kwargs)
668 except Exception as e: # pylint:disable=broad-except
669 if hasattr(e, 'ag_error_metadata'):
--> 670 raise e.ag_error_metadata.to_exception(e)
671 else:
672 raise
AttributeError: in user code:
/usr/local/lib/python3.6/dist-packages/keras_contrib/layers/crf.py:292 call *
test_output = self.viterbi_decoding(X, mask)
/usr/local/lib/python3.6/dist-packages/keras_contrib/layers/crf.py:564 viterbi_decoding *
argmin_tables = self.recursion(input_energy, mask, return_logZ=False)
/usr/local/lib/python3.6/dist-packages/keras_contrib/layers/crf.py:521 _step *
return self.step(input_energy_i, states, return_logZ)
/usr/local/lib/python3.6/dist-packages/keras_contrib/layers/crf.py:463 step *
m = K.slice(states[3], [0, t], [-1, 2])
AttributeError: module 'keras.backend' has no attribute 'slice'`
Could you help me please?
Best regards!
Why does this model work so badly? Tenorfolw implements a model that works so well.
Why does this model work so badly? Tenorfolw implements a model that works so well.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.