MachineLP的Github(欢迎follow):https://github.com/MachineLP
MachineLP的博客目录:小鹏的博客目录
seq2seq还是很赞的,既能做翻译、又能做image captioning,还能做多标签。
相关代码解读可以查看:
(1) https://zhuanlan.zhihu.com/p/48426550
(2) https://zhuanlan.zhihu.com/p/52608602
手撕seq2seq:https://github.com/zhangluoyang/text_sum/blob/master/seq2seq_attention_model.py
原理介绍已经有很多了,那我们在看一下TF的seq2seq代码吧:
# coding=utf-8
import tensorflow as tf
import numpy as