Git Product home page Git Product logo

aspect-term-extraction's People

Contributors

bramblexu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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!

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.