GithubHelp home page GithubHelp logo

dynamic-seq2seq's Introduction

Anurag's GitHub stats

dynamic-seq2seq's People

Contributors

yanwii 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dynamic-seq2seq's Issues

encoder_vocab_size 如何设置?

encoder_vocab_size设置多少合理?
第一次训练设置7000
但是第二次不设置7000 就会出现问题
这个该如何设置?

我加入一个循环输入之后,运行一直卡在这里,请问大神知道原因吗?

('tensorflow version: ', '1.4.1')
Building prefix dict from the default dictionary ...
Loading model from cache /tmp/jieba.cache
Loading model cost 0.482 seconds.
Prefix dict has been built succesfully.
encoder_vocab_size 1930
decoder_vocab_size 3084
2018-07-24 16:16:14.410099: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1
model/chatbot_seq2seq.ckpt--1

没有过滤掉词频较小的词?

我看preprocess.py 中没有过滤掉词频较小的词,这样数据量一大,词典就很大, 而且很多低频词,这样做seq2seq是不是不太合理?

error

Traceback (most recent call last):
File "seq2seq.py", line 382, in
seq = seq2seq()
File "seq2seq.py", line 54, in init
time_major=True)
File "/Users/LymanYoung/source/git_tensorflow/seq2seq-demo/dynamic-seq2seq/dynamic_seq2seq_model.py", line 61, in init
self._make_graph()
File "/Users/LymanYoung/source/git_tensorflow/seq2seq-demo/dynamic-seq2seq/dynamic_seq2seq_model.py", line 85, in _make_graph
self._init_decoder()
File "/Users/LymanYoung/source/git_tensorflow/seq2seq-demo/dynamic-seq2seq/dynamic_seq2seq_model.py", line 221, in _init_decoder
decoder_fn_train = seq2seq.simple_decoder_fn_train(encoder_state=self.encoder_state)
AttributeError: module 'tensorflow.contrib.seq2seq' has no attribute 'simple_decoder_fn_train'

encoder_state return Tuple type

how to Concatenate the final state? I tried tf.concat((encoder_fw_state, encoder_bw_state), 2), but it return error. thanks.

想改用自己的训练数据时 出现InvalidArgumentError,不知道是什么原因

假如把语料库改成你的5000句的
即:python prepare_dialog.py 5000
再进行训练 python seq2seq.py retrain
出现这个错误
InvalidArgumentError (see above for traceback): logits and labels must have the same first dimension, got logits shape [2800,5970] and labels shape [2860] [[Node: sequence_loss/SparseSoftmaxCrossEntropyWithLogits/SparseSoftmaxCrossEntropyWithLogits = SparseSoftmaxCrossEntropyWithLogits[T=DT_FLOAT, Tlabels=DT_INT32, _device="/job:localhost/replica:0/task:0/device:CPU:0"](sequence_loss/Reshape, sequence_loss/Reshape_1)]]

请问这是什么问题?

[Error] 出現not found model

請問大大我用python3 seq2seq.py train 訓練完成後
輸入 python3 seq2seq.py infer
他都顯示not found model,這是為什麼

image

模型训练

请问现在项目中的模型是训练好的吗?测试一下效果很差。。。是都需要重新训练模型吗?

训练时,label与logits第一维度不匹配

在进行第一轮训练时,当step101结束后报错:logits and labels must have the same first dimension, got logits shape [2800,9003] and labels shape [2860],不知道该怎么调整代码的label与logits长度相等。

train error

if my A and Q fiie line over 10, it not good for train, tensorflow.python.framework.errors_impl.InvalidArgumentError: logits and labels must have the same first dimension, got logits shape [20,339] and labels shape [22]

可以提供preprocessing/dec.vocab数据吗?

您好,我对您的这个项目很感兴趣,但是您可以提供preprocessing/dec.vocab, preprocessing/dec.segementpreprocessing/enc.vocab, preprocessing/enc.segement这些数据吗?

非常感谢!

ValueError: Attempt to reuse RNNCell

出现如下错误,请帮忙解答:

ValueError: Attempt to reuse RNNCell <tensorflow.contrib.rnn.python.ops.core_rnn_cell_impl.LSTMCell object at 0x0000000007E92E48> with a different variable scope than its first use. First use of cell was with scope 'BidirectionalEncoder/bidirectional_rnn/fw/lstm_cell', this attempt is with scope 'BidirectionalEncoder/bidirectional_rnn/bw/lstm_cell'. Please create a new instance of the cell if you would like it to use a different set of weights. If before you were using: MultiRNNCell([LSTMCell(...)] * num_layers), change to: MultiRNNCell([LSTMCell(...) for _ in range(num_layers)]). If before you were using the same cell instance as both the forward and reverse cell of a bidirectional RNN, simply create two instances (one for forward, one for reverse). In May 2017, we will start transitioning this cell's behavior to use existing stored weights, if any, when it is called with scope=None (which can lead to silent model degradation, so this error will remain until then.)

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.