Some interesting applications of RNN, e.g. char rnn (pomes generation), seq2seq (machine translation), image captioning (NIC)
The method is shown in follow figure.
藏头诗1 | 藏头诗2 |
---|---|
相逢不可见,不见不相逢。不见青山里,何人识所逢。 | 猪岖江畔尖,暮雨到山中。雨滴胶帆动,云深雁雁啼。 |
约郭不相见,空山不见君。不知何处去,不见故人心。 | 年少不相见,何人更盍簪。不知春草色,不见白云期。 |
中禁闻清洛,青山独自然。青山连水阔,白日向云多。 | 大堤春色晚,一概华輈春。不见春风里,何人更有情。 |
华堂临巨壑,千里类宸祠。警跸方回首,缧囚不可忘。 | 吉垣入天子,不见白云中。日暮无人到,山中有旧梯。 |
腾庐不可见,不见不相逢。不见青山里,何人识所逢。 | |
飞草初生柳,春风不见君。青山无限路,白发不相关。 | |
时无垠兮复,不是不相宜。 |
The method is shown in follow figure.
English | -> | Chinese |
---|---|---|
I want to go to school. | -> | 我想去上學。 |
I am here. | -> | 我在這裡。 |
You are here. | -> | 你在這裡。 |
Where are you? | -> | 你在哪儿? |
What do you like? | -> | 你喜欢什么? |
The method is shown in follow figure.
These results are under training about 40,000 iterations.
- tang poems dataset: https://github.com/todototry/AncientChinesePoemsDB
- ENG2CHN dataset: http://www.manythings.org/anki/
- flickr30k: https://pan.baidu.com/s/1QAZq22mGJVMfGh0-rLiwxQ
├── ImageCaption
├── flickr30k
├── imgs
├── 36979.jpg
├── 65567.jpg
├── 81641.jpg
...
├── results_20130124.token
- python 3.5
- tensorflow 1.4.0
- pillow
- numpy
- pandas
[1]. http://karpathy.github.io/2015/05/21/rnn-effectiveness/
[2]. http://colah.github.io/posts/2015-08-Understanding-LSTMs/
[3]. Sutskever I, Vinyals O, Le Q V. Sequence to sequence learning with neural networks[C]//Advances in neural information processing systems. 2014: 3104-3112.
[4]. Vinyals O, Toshev A, Bengio S, et al. Show and tell: Lessons learned from the 2015 mscoco image captioning challenge[J]. IEEE transactions on pattern analysis and machine intelligence, 2017, 39(4): 652-663.