weixin_39620037 2020-11-21 01:10
浏览 0

Condition never ran

Line 159 in batch_loader.py


if len(char) == max_word_length:
  chars[-1] = char2idx['}']

该提问来源于开源项目:carpedm20/lstm-char-cnn-tensorflow

  • 写回答

6条回答 默认 最新

  • weixin_39620037 2020-11-21 01:10
    关注

    That's because we set the max_word_length pretty large number which is 64. I remember that the longest word length in ptb dataset was around forty so this might not be a problem.

    评论

报告相同问题?