GithubHelp home page GithubHelp logo

indiejoseph / doc-han-att Goto Github PK

View Code? Open in Web Editor NEW
208.0 208.0 55.0 8.84 MB

Hierarchical Attention Networks for Chinese Sentiment Classification

Python 23.35% Jupyter Notebook 76.65%
attention chinese deep-learning document nlp rnn tensorflow

doc-han-att's People

Contributors

hardmaru avatar indiejoseph 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  avatar

doc-han-att's Issues

Out of memory

PoolAllocator: After 46502 get requests, put_count=46422 evicted_count=1000 eviction_rate=0.0215415 and unsatisfied allocation rate=0.0253753
2017-10-19 20:46:08.469526: I tensorflow/core/common_runtime/gpu/pool_allocator.cc:259] Raising pool_size_limit_ from 100 to 110

ImportError: cannot import name 'core_rnn_cell_impl'怎么处理呢?

Traceback (most recent call last):
File "train.py", line 7, in
from model import Model
File "/software/home/zhongsl/han005/model.py", line 6, in
from ran_cell import RANCell
File "/software/home/zhongsl/han005/ran_cell.py", line 10, in
from tensorflow.contrib.rnn.python.ops import core_rnn_cell_impl
ImportError: cannot import name 'core_rnn_cell_impl'
谢谢!Thanks!

Embedding_lookup out of index

I encountered the following issue when running your code:
InvalidArgumentError (see above for traceback): indices[0,6,12] = 2239 is not in [0, 2192)
[[Node: model_1/embedding_lookup = Gather[Tindices=DT_INT64, Tparams=DT_FLOAT, _class=["loc:@model/embedding"], validate_indices=true, _device="/job:localhost/replica:0/task:0/cpu:0"](model/embedding/read, _recv_model_1/inputs_0)]]

Accrding to the last lssue, i guess my the cropus I used was too small so the embedding_lookup is out of index. Can you please share your training cropus or embed if it is possible since I have difficult in obtaining the cropus?
Thank you.

Bug in CPU training (related to TensorFlow)?

As I observed, there will be an out-of-vocabulary error throwing out when using the "embedding_lookup"
Error looks like:

InvalidArgumentError (see above for traceback): indices[0,1,3] = 6501 is not in [0, 6342)
[[Node: model_1/embedding_lookup = Gather[Tindices=DT_INT64, Tparams=DT_FLOAT, class=["loc:@model/embedding"], validate
indices=true, _device="/job:localhost/replica:0/task:0/cpu:0"](model/embedding/read, _recv_model_1/inputs_0)]]

See geek-ai/irgan#9

Nothing wrong with your code, it sounds like a known issue in Tensorflow (CPU version)

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.