{"id":3487,"date":"2020-05-05T15:58:49","date_gmt":"2020-05-05T07:58:49","guid":{"rendered":"http:\/\/www.sniper97.cn\/?p=3487"},"modified":"2020-05-05T15:58:49","modified_gmt":"2020-05-05T07:58:49","slug":"%e3%80%90%e6%b7%b1%e5%ba%a6%e5%ad%a6%e4%b9%a0%e3%80%91%e5%b8%a6%e6%b3%a8%e6%84%8f%e5%8a%9b%e6%9c%ba%e5%88%b6%e7%9a%84seq2seq","status":"publish","type":"post","link":"http:\/\/www.sniper97.cn\/index.php\/note\/deep-learning\/base\/3487\/","title":{"rendered":"\u3010\u6df1\u5ea6\u5b66\u4e60\u3011\u5e26\u6ce8\u610f\u529b\u673a\u5236\u7684seq2seq"},"content":{"rendered":"\n<p>Sequence-to- Sequence \u6a21\u578b\u662f\u4e00\u4e2a\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b\uff0c\u5b83\u80fd\u591f\u6210\u529f\u5b8c\u6210\u4f8b\u5982\u673a\u5668\u7ffb\u8bd1\u3001\u6587\u672c\u6458\u8981\u548c\u56fe\u7247\u63cf\u8ff0\u7b49\u4efb\u52a1\u3002Google\u7ffb\u8bd1\u6700\u5f00\u59cb\u57282016\u5e74\u4f7f\u7528\u8fd9\u9879\u6280\u672f\u3002\u8fd9\u4e2a\u6a21\u578b\u6700\u5148\u7531\u8fd9\u4e24\u7bc7\u8bba\u6587\u63d0\u51fa\uff08<a rel=\"noreferrer noopener\" aria-label=\"Sutskever et al.,2014\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\" href=\"https:\/\/papers.nips.cc\/paper\/5346-sequence-to-sequence-learning-with-neural-networks.pdf\" target=\"_blank\">Sutskever et al.,2014<\/a>,<a rel=\"noreferrer noopener\" aria-label=\"Cho et al.,2014\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\" href=\"http:\/\/emnlp2014.org\/papers\/pdf\/EMNLP2014179.pdf\" target=\"_blank\">Cho et al.,2014<\/a>\uff09\u3002<\/p>\n\n\n<p>\u7136\u800c\uff0c\u6211\u53d1\u73b0\u5982\u679c\u60f3\u8981\u5f88\u597d\u7684\u7406\u89e3\u8fd9\u4e2a\u6a21\u578b\u5e76\u5b9e\u73b0\u5b83\uff0c\u9700\u8981\u660e\u767d\u5f88\u591a\u76f8\u4e92\u5173\u8054\u7684\u6982\u5ff5\u3002\u6211\u8ba4\u4e3a\u5982\u679c\u628a\u8fd9\u4e9b\u60f3\u6cd5\u7528\u89c6\u89c9\u6765\u4f53\u73b0\u51fa\u6765\u53ef\u80fd\u4f1a\u6709\u52a9\u4e8e\u7406\u89e3\u3002\u8fd9\u5c31\u662f\u6211\u8fd9\u7bc7\u6587\u7ae0\u7684\u76ee\u7684\u3002\u4f60\u53ef\u80fd\u4f1a\u9700\u8981\u4e00\u4e9b\u6df1\u5ea6\u5b66\u4e60\u65b9\u9762\u7684\u524d\u7f6e\u77e5\u8bc6\u6765\u7406\u89e3\u8fd9\u7bc7\u6587\u7ae0\u3002\u6211\u5e0c\u671b\u5b83\u80fd\u591f\u6210\u4e3a\u4f60\u9605\u8bfb\u4e0a\u9762\u51e0\u7bc7\u8bba\u6587\u548c\u540e\u9762\u5c06\u4f1a\u63d0\u5230\u7684\u8bba\u6587\u7684\u5f97\u529b\u5e2e\u624b\u3002<\/p>\n\n\n<p>\u4e00\u4e2aseq2seq\u6a21\u578b\u662f\u4e00\u4e2a\u80fd\u591f\u4f7f\u7528\u4e00\u4e2a\u5e8f\u5217\uff08\u5355\u8bcd\u3001\u5b57\u6bcd\u3001\u56fe\u7247\u7279\u5f81\u7b49\uff09\u7136\u540e\u8f93\u51fa\u53e6\u4e00\u4e2a\u5e8f\u5217\u3002\u4e00\u4e2a\u8bad\u7ec3\u597d\u7684\u6a21\u578b\u5de5\u4f5c\u65b9\u5f0f\u5982\u4e0b\uff1a<\/p>\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/jalammar.github.io\/images\/seq2seq_1.mp4\"><\/video><\/figure>\n\n\n<p>\u5728\u673a\u5668\u7ffb\u8bd1\u9886\u57df\uff0c\u5bf9\u4e8e\u8f93\u5165\u5e8f\u5217\u548c\u8f93\u51fa\u5e8f\u5217\u53ef\u80fd\u5982\u4e0b\uff1a<\/p>\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/jalammar.github.io\/images\/seq2seq_2.mp4\"><\/video><\/figure>\n\n\n<h2 class=\"wp-block-heading\">\u770b\u770b\u5177\u4f53\u7684\u5de5\u4f5c\u539f\u7406<\/h2>\n\n\n<p>\u5728\u4e2d\u95f4\u7684\u90e8\u5206\uff0c\u6a21\u578b\u5206\u4e3a<strong>\u7f16\u7801\u5668<\/strong>\uff08encoder\uff09\u548c<strong>\u89e3\u7801\u5668<\/strong>\uff08decoder\uff09\u3002<\/p>\n\n\n<p><strong>\u7f16\u7801\u5668<\/strong>\u5904\u7406\u8f93\u5165\u5e8f\u5217\u4e2d\u7684\u6bcf\u4e00\u9879\uff0c\u5b83\u5c06\u5b83\u6355\u83b7\u7684\u4fe1\u606f\u6c47\u96c6\u6210\u4e00\u4e2a\u5411\u91cf\uff08\u6211\u4eec\u79f0\u4e4b\u4e3a<strong>\u957f\u4e0b\u6587<\/strong>\uff08context\uff09\uff09\u3002\u5728\u5904\u7406\u8fc7\u6240\u6709\u7684\u8f93\u5165\u4fe1\u606f\u4e4b\u540e\uff0c<strong>\u7f16\u7801\u5668<\/strong>\u5c06\u4e0a\u4e0b\u6587\u53d1\u9001\u5230<strong>\u89e3\u7801\u5668<\/strong>\uff0c\u7136\u540e\u89e3\u7801\u5668\u5f00\u59cb\u9010\u9879\u751f\u6210\u8f93\u51fa\u5e8f\u5217\u3002<\/p>\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/jalammar.github.io\/images\/seq2seq_3.mp4\"><\/video><\/figure>\n\n\n<p>\u8fd8\u662f\u7528\u4e4b\u524d\u7684\u673a\u5668\u7ffb\u8bd1\u6765\u4e3e\u4f8b\uff1a<\/p>\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/jalammar.github.io\/images\/seq2seq_4.mp4\"><\/video><\/figure>\n\n\n<p>\u5728\u673a\u5668\u7ffb\u8bd1\u7684\u60c5\u51b5\u4e0b\uff0c<strong>\u4e0a\u4e0b\u6587<\/strong>\u662f\u4e00\u4e2a\u5411\u91cf\uff08\u5927\u90e8\u5206\u60c5\u51b5\u4e0b\u662f\u4e00\u4e2a\u6570\u7ec4\uff09\u3002<strong>\u7f16\u7801\u5668<\/strong>\u548c<strong>\u89e3\u7801\u5668<\/strong>\u5f80\u5f80\u90fd\u662f\u4e00\u4e2a\u9012\u5f52\u795e\u7ecf\u7f51\u7edc\uff08RNN\uff09\uff08\u4e00\u5b9a\u8981\u770b\u770bLuis Serrano\u7684 <a rel=\"noreferrer noopener\" aria-label=\"A friendly introduction to Recurrent Neural Networks\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\" href=\"https:\/\/www.bilibili.com\/video\/BV1Ni4y147mX\" target=\"_blank\">A friendly introduction to Recurrent Neural Networks<\/a> \u6765\u770b\u770b\u4ec0\u4e48\u662fRNN\uff09<\/p>\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/jalammar.github.io\/images\/context.png\" alt=\"\"\/><figcaption>\u8fd9\u4e2a<strong>\u4e0a\u4e0b\u6587<\/strong>\u662f\u4e00\u4e2a\u6d6e\u70b9\u5411\u91cf\u3002\u4e4b\u540e\u6211\u4eec\u5c06\u4e3a\u5177\u6709\u66f4\u9ad8\u6743\u91cd\u7684\u5355\u5143\u5206\u914d\u66f4\u4eae\u7684\u989c\u8272\u6765\u53ef\u89c6\u5316\u8fd9\u4e2a\u5411\u91cf<\/figcaption><\/figure>\n\n\n<p>\u4f60\u53ef\u4ee5\u5728\u4f60\u8bbe\u7f6e\u4f60\u7684\u6a21\u578b\u7684\u65f6\u5019\u8bbe\u7f6e\u4e0a\u4e0b\u6587\u7684\u5927\u5c0f\u3002\u5b83\u57fa\u672c\u4e0a\u662f\u7f16\u7801\u5668\u7684RNN\u4e2d\u9690\u85cf\u5355\u5143\u7684\u6570\u91cf\u3002\u6211\u4eec\u5728\u4e0a\u9762\u8ddd\u79bb\u4e0a\u4e0b\u6587\u5411\u91cf\u5927\u5c0f\u4e3a4\uff0c\u5b9e\u9645\u4e0a\u8fd9\u4e2a\u5927\u5c0f\u53ef\u80fd\u662f256\u3001512\u751a\u81f3\u662f1024\u3002<\/p>\n\n\n<p>\u901a\u8fc7\u8bbe\u8ba1\uff0cRNN\u5728\u6bcf\u4e00\u6b65\u4e0a\u90fd\u6709\u4e24\u4e2a\u8f93\u5165\uff0c\u4e00\u4e2a\u8f93\u5165\uff08\u5bf9\u4e8e\u7f16\u7801\u5668\u6765\u8bf4\uff0c\u662f\u6765\u81ea\u8f93\u5165\u8bed\u53e5\u7684\u4e00\u4e2a\u5355\u8bcd\uff09\uff0c\u548c\u4e00\u4e2a\u9690\u85cf\u72b6\u6001\u3002\u4f46\u662f\uff0c\u8fd9\u4e2a\u8bcd\u9700\u8981\u4e00\u4e2a\u5411\u91cf\uff08\u8bcd\u5411\u91cf\uff09\u6765\u8868\u793a\u3002\u4e3a\u4e86\u5c06\u4e00\u4e2a\u5355\u8bcd\u8f6c\u6362\u4e3a\u4e00\u4e2a\u5411\u91cf\uff0c\u6211\u4eec\u5c06\u8fd9\u4e2a\u65b9\u6cd5\u79f0\u4e4b\u4e3a\u201c<strong>\u8bcd\u5d4c\u5165<\/strong>\uff08word wmbedding\uff09\u201d\u7b97\u6cd5\u3002\u5b83\u5c06\u5355\u8bcd\u6620\u5c04\u5230\u7a7a\u95f4\u5411\u91cf\u4ece\u800c\u6355\u83b7\u5230\u5355\u8bcd\u8bb8\u591a\u7684\u542b\u4e49\/\u8bed\u4e49\u4fe1\u606f\u3002\uff08\u4f8b\u5982 \u56fd\u738b-\u7537\u4eba+\u5973\u4eba=\u5973\u738b\uff09<\/p>\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/jalammar.github.io\/images\/embedding.png\" alt=\"\"\/><figcaption>\u5728\u5904\u7406\u4ed6\u4eec\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5c06\u8f93\u5165\u7684\u5355\u8bcd\u8f6c\u6362\u4e3a\u5411\u91cf\u3002\u8fd9\u4e2a\u8f6c\u6362\u4f7f\u7528\u7684\u662f\u8bcd\u5d4c\u5165\u7b97\u6cd5\u3002\u6211\u4eec\u53ef\u4ee5\u9884\u8bad\u7ec3\u7684\u5d4c\u5165\u6216\u8005\u5728\u6211\u4eec\u81ea\u5df1\u7684\u6570\u636e\u96c6\u4e0a\u8bad\u7ec3\u4e00\u4e2a\u81ea\u5df1\u7684\u8bcd\u5d4c\u5165\u3002\u5d4c\u5165\u5411\u91cf\u957f\u5ea6\u901a\u5e38\u4e3a200\u6216300\u3002\u4e3a\u4e86\u7b80\u5355\u8d77\u89c1\uff0c\u6211\u4eec\u53ea\u4e3e\u4f8b\u5927\u5c0f\u4e3a4\u3002<\/figcaption><\/figure>\n\n\n<p>\u73b0\u5728\u6211\u4eec\u5df2\u7ecf\u4ecb\u7ecd\u4e86\u6211\u4eec\u4e3b\u8981\u7684\u5411\u91cf\/\u5f20\u91cf\uff08tensor\uff09\uff0c\u90a3\u8ba9\u6211\u4eec\u56de\u987e\u4e00\u4e0bRNN\u673a\u5236\uff0c\u5e76\u5efa\u7acb\u4e00\u4e2a\u53ef\u89c6\u5316\u7684\u8bed\u8a00\u6765\u63cf\u8ff0\u8fd9\u4e9b\u6a21\u578b\uff1a<\/p>\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/jalammar.github.io\/images\/RNN_1.mp4\"><\/video><\/figure>\n\n\n<p>\u4e0b\u4e00\u4e2aRNN\u6b65\u9aa4\u4f7f\u7528\u7b2c\u4e8c\u4e2a\u8f93\u5165\u5411\u91cf\u548c\u9690\u85cf\u72b6\u6001#1\u6765\u751f\u6210\u5f53\u524d\u65f6\u95f4\u6b65\u7684\u8f93\u51fa\u3002\u5728\u672c\u6587\u7684\u540e\u9762\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u8fd9\u6837\u7684\u52a8\u753b\u6765\u63cf\u8ff0\u673a\u5668\u7ffb\u8bd1\u6a21\u578b\u3002<\/p>\n\n\n<p>\u5728\u4e0b\u9762\u7684\u53ef\u89c6\u5316\u4e2d\uff0c\u7f16\u7801\u5668\u6216\u89e3\u7801\u5668\u7684\u6bcf\u4e00\u6b65\u90fd\u662fRNN\u5728\u6bcf\u4e00\u4e2a\u65f6\u95f4\u6b65\u4e2d\u5904\u7406\u8f93\u5165\u5e76\u4e14\u751f\u6210\u8f93\u51fa\u3002\u56e0\u4e3a\u7f16\u7801\u5668\u548c\u89e3\u7801\u5668\u90fd\u662fRNNs\uff0c\u6bcf\u4e00\u4e2a\u65f6\u95f4\u6b65RNNs\u90fd\u4f1a\u8fdb\u884c\u4e00\u4e9b\u5904\u7406\uff0c\u5b83\u4f1a\u6839\u636e\u5b83\u5f97\u5230\u7684\u8f93\u5165\u548c\u4e4b\u524d\u7684\u8f93\u5165\uff08\u611f\u89c9\u662f\u4f5c\u8005\u7b14\u8bef\uff0c\u5e94\u8be5\u662f\u4e4b\u524d\u7684\u8f93\u51fa\uff09\u6765\u66f4\u65b0\u5b83\u7684\u9690\u85cf\u72b6\u6001\u3002<\/p>\n\n\n<p>\u8ba9\u6211\u4eec\u770b\u770b\u7f16\u7801\u5668\u9690\u85cf\u5c42\u3002\u6ce8\u610f\uff0c\u6700\u540e\u4e00\u4e2a\u9690\u85cf\u72b6\u6001\u5b9e\u9645\u4e0a\u662f\u6211\u4eec\u4f20\u9012\u7ed9\u89e3\u7801\u5668\u7684\u4e0a\u4e0b\u6587\u3002<\/p>\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/jalammar.github.io\/images\/seq2seq_5.mp4\"><\/video><\/figure>\n\n\n<p>\u89e3\u7801\u5668\u8fd8\u7ef4\u62a4\u4e86\u4e00\u4e2a\u9690\u85cf\u72b6\u6001\uff0c\u4ee5\u4fbf\u4ece\u4e00\u4e2a\u65f6\u95f4\u6b65\u957f\u4f20\u9012\u5230\u4e0b\u4e00\u4e2a\u65f6\u95f4\u6b65\u957f\uff08\u540e\u9762\u4f1a\u4ecb\u7ecd\uff09\u3002\u6211\u4eec\u6ca1\u6709\u628a\u8fd9\u4e00\u6b65\u8fdb\u884c\u53ef\u89c6\u5316\uff0c\u56e0\u4e3a\u6211\u4eec\u73b0\u5728\u5173\u5fc3\u7684\u662f\u6a21\u578b\u7684\u4e3b\u8981\u90e8\u5206\u3002<\/p>\n\n\n<p>\u73b0\u5728\u6211\u4eec\u770b\u4e00\u4e0b\u53e6\u4e00\u79cd\u5bf9seq2seq\u7684\u53ef\u89c6\u5316\u8fc7\u7a0b\u3002\u8fd9\u4e2a\u52a8\u753b\u5c06\u4f7f\u7406\u89e3\u8fd9\u4e2a\u6a21\u578b\u53d8\u5f97\u66f4\u5bb9\u6613\u3002\u5982\u4e0b\u56fe\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u6bcf\u4e00\u6b65\u7684\u8f93\u5165\u548c\u8f93\u51fa\uff1a<\/p>\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/jalammar.github.io\/images\/seq2seq_6.mp4\"><\/video><\/figure>\n\n\n<h2 class=\"wp-block-heading\">\u73b0\u5728\u5f15\u5165\u6ce8\u610f\u529b\u673a\u5236<\/h2>\n\n\n<p>\u663e\u7136\u4e0a\u4e0b\u6587\u6210\u4e3a\u4e86\u8fd9\u7c7b\u6a21\u578b\u7684\u74f6\u9888\uff0c\u56e0\u4e3a\u8fd9\u7ed9\u6a21\u578b\u5904\u7406\u957f\u6587\u672c\u5e26\u6765\u4e86\u6311\u6218\u3002<a rel=\"noreferrer noopener\" aria-label=\"Bahdanau et al.,2014\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\" href=\"https:\/\/arxiv.org\/abs\/1409.0473\" target=\"_blank\">Bahdanau et al.,2014<\/a>\u3001<a rel=\"noreferrer noopener\" aria-label=\"Luong et al.,2015\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\" href=\"https:\/\/arxiv.org\/abs\/1508.04025\" target=\"_blank\">Luong et al.,2015<\/a>\u7b49\u4eba\u63d0\u51fa\u4e86\u4e00\u4e2a\u89e3\u51b3\u529e\u6cd5\u3002\u8fd9\u4e9b\u8bba\u6587\u63d0\u51fa\u4e86\u4e00\u4e2a\u53eb\u201c\u6ce8\u610f\u529b\u201d\u7684\u6280\u672f\uff0c\u6781\u5927\u5730\u63d0\u9ad8\u4e86\u673a\u5668\u7ffb\u8bd1\u7684\u8d28\u91cf\u3002\u6ce8\u610f\u529b\u5141\u8bb8\u6a21\u578b\u6839\u636e\u9700\u8981\u5173\u6ce8\u8f93\u5165\u5e8f\u5217\u7684\u4e0d\u540c\u90e8\u5206\u3002<\/p>\n\n\n<p>\u6ce8\u610f\u529b\u6a21\u578b\u4e0e\u7ecf\u5178\u7684seq2seq\u6709\u4e24\u4e2a\u4e3b\u8981\u7684\u533a\u522b\uff1a<\/p>\n\n\n<p>\u9996\u5148\uff0c\u7f16\u7801\u5668\u5c06\u66f4\u591a\u7684\u4fe1\u606f\u4f20\u9012\u7ed9\u89e3\u7801\u5668\u3002\u7f16\u7801\u5668\u4e0d\u518d\u4f20\u9012\u6700\u540e\u4e00\u4e2a\u9690\u85cf\u5c42\u72b6\u6001\uff0c\u800c\u662f\u5c06\u6240\u6709\u7684\u9690\u85cf\u5c42\u72b6\u6001\u4f20\u9012\u7ed9\u89e3\u7801\u5668<\/p>\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/jalammar.github.io\/images\/seq2seq_7.mp4\"><\/video><\/figure>\n\n\n<p>\u7136\u540e\uff0c\u6ce8\u610f\u529b\u89e3\u7801\u5668\u5728\u4ea7\u751f\u8f93\u51fa\u524d\u591a\u4e86\u4e00\u6b65\u3002\u4e3a\u4e86\u5173\u6ce8\u8f93\u5165\u7684\u4e0d\u540c\u90e8\u5206\uff0c\u89e3\u7801\u5668\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n\n\n<ul><li>\u67e5\u770b\u63a5\u6536\u5230\u7684\u7f16\u7801\u5c42\u9690\u85cf\u5c42\u72b6\u6001\u96c6\u2014\u2014\u6bcf\u4e2a\u9690\u85cf\u5c42\u72b6\u6001\u90fd\u4e0e\u8f93\u5165\u4e0e\u5267\u4e2d\u67d0\u4e2a\u5355\u8bcd\u6709\u5f88\u5927\u7684\u5173\u8054\u3002<\/li><li>\u7ed9\u5b9a\u6bcf\u4e00\u4e2a\u9690\u85cf\u5c42\u4e00\u4e2a\u5206\u6570\uff08\u6682\u65f6\u5ffd\u7565\u8fd9\u4e2a\u5206\u6570\u662f\u600e\u4e48\u5f97\u5230\u7684\uff09<\/li><li>\u5bf9\u6bcf\u4e00\u4e2a\u9690\u85cf\u5c42\u72b6\u6001\u4e58\u4ee5softmax\u540e\u7684\u5206\u6570\uff0c\u4ece\u800c\u653e\u5927\u5f97\u5206\u9ad8\u7684\u9690\u85cf\u5c42\u72b6\u6001\uff0c\u63a9\u76d6\u5f97\u5206\u4f4e\u7684\u9690\u85cf\u5c42\u72b6\u6001\u3002<\/li><\/ul>\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/jalammar.github.io\/images\/attention_process.mp4\"><\/video><\/figure>\n\n\n<p>\u8fd9\u4e2a\u8bc4\u5206\u662f\u7531\u89e3\u7801\u5668\u7aef\u5728\u6bcf\u4e00\u4e2a\u65f6\u95f4\u6b65\u4e2d\u8fdb\u884c\u7684\u3002<\/p>\n\n\n<p>\u73b0\u5728\u8ba9\u6211\u4eec\u628a\u6240\u6709\u7684\u4e1c\u897f\u653e\u5728\u4e00\u8d77\u8fdb\u884c\u53ef\u89c6\u5316\uff0c\u7136\u540e\u89c2\u5bdf\u6ce8\u610f\u529b\u673a\u5236\u5230\u5e95\u505a\u4e86\u4ec0\u4e48\uff1f<\/p>\n\n\n<ul><li>\u6ce8\u610f\u529b\u89e3\u7801\u5668RNN\u5305\u542b\u4e86&lt;END> \u6807\u8bb0 \u548c\u4e00\u4e2a\u521d\u59cb\u7684\u89e3\u7801\u5668\u9690\u85cf\u5c42\u72b6\u6001\u3002<\/li><li>RNN\u5904\u7406\u8f93\u5165\uff0c\u4ea7\u751f\u8f93\u51fa\u548c\u4e00\u4e2a\u65b0\u7684\u9690\u85cf\u5c42\u72b6\u6001\u5411\u91cf\uff08h4\uff09\u3002\u8f93\u51fa\u4f1a\u88ab\u629b\u5f03\u3002<\/li><li>\u6ce8\u610f\u529b\u6b65\u9aa4\uff1a\u6211\u4eec\u4f7f\u7528\u7f16\u7801\u5668\u9690\u85cf\u5c42\u72b6\u6001\u548ch4\u5411\u91cf\u6765\u8ba1\u7b97\u4e0a\u4e0b\u6587\u5411\u91cf\uff08C4\uff09\u3002<\/li><li>\u6211\u4eec\u8fde\u63a5h4\u548cC4\u6210\u4e00\u4e2a\u5411\u91cf\u3002<\/li><li>\u6211\u4eec\u901a\u8fc7\u4e00\u4e2a\u524d\u9988\u795e\u7ecf\u7f51\u7edc\uff08\u4e0e\u6a21\u578b\u8fde\u63a5\u4e00\u540c\u8bad\u7ec3\uff09\u6765\u5904\u7406\u8fd9\u4e2a\u5411\u91cf\u3002<\/li><li>\u524d\u9988\u795e\u7ecf\u7f51\u7edc\u7684\u8f93\u51fa\u4f5c\u4e3a\u8be5\u65f6\u95f4\u6b65\u957f\u7684\u8f93\u51fa\u3002<\/li><li>\u91cd\u590d\u4e0b\u4e00\u65f6\u95f4\u6b65\u3002<\/li><\/ul>\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/jalammar.github.io\/images\/attention_tensor_dance.mp4\"><\/video><\/figure>\n\n\n<p>\u53e6\u4e00\u79cd\u65b9\u5f0f\u6765\u89c2\u5bdf\u5728\u6bcf\u4e00\u4e2a\u89e3\u7801\u8fc7\u7a0b\u4e2d\u6ce8\u610f\u529b\u673a\u5236\u662f\u600e\u4e48\u89c2\u5bdf\u8f93\u5165\u53e5\u5b50\u7684\u8fc7\u7a0b\u5982\u4e0b\uff1a<\/p>\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/jalammar.github.io\/images\/seq2seq_9.mp4\"><\/video><\/figure>\n\n\n<p>\u8bf7\u6ce8\u610f\uff0c\u6a21\u578b\u5e76\u4e0d\u53ea\u662f\u76f2\u76ee\u7684\u5c06\u8f93\u51fa\u4e2d\u7684\u7b2c\u4e00\u4e2a\u5355\u8bcd\u4e0e\u8f93\u5165\u7684\u7b2c\u4e00\u4e2a\u5355\u8bcd\u5bf9\u9f50\u3002\u5b9e\u9645\u4e0a\uff0c\u5b83\u4ece\u8bad\u7ec3\u9636\u6bb5\u5b66\u4e60\u4e86\u5982\u4f55\u6392\u5217\u8bed\u8a00\u4e2d\u7684\u5355\u8bcd\uff08\u5b9e\u4f8b\u662f\u6cd5\u8bed\u7ffb\u8bd1\u5230\u82f1\u8bed\uff09\u3002\u4e0b\u9762\u4e3e\u4e2a\u4f8b\u5b50\uff1a<\/p>\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/jalammar.github.io\/images\/attention_sentence.png\" alt=\"\"\/><figcaption>\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u8be5\u6a21\u578b\u5728\u8f93\u51fa\u201cEuropean Economic Area\u201d\u3002\u5728\u6cd5\u8bed\u4e2d\uff0c\u8fd9\u4e9b\u8bcd\u7684\u987a\u5e8f\u4e0e\u82f1\u8bed\u76f8\u53cd (&#8220;europ\u00e9enne \u00e9conomique zone&#8221;) \u3002\u8fd9\u4e2a\u53e5\u5b50\u4e2d\u5176\u4ed6\u5355\u8bcd\u7684\u987a\u5e8f\u90fd\u5dee\u4e0d\u591a\u3002<\/figcaption><\/figure>\n\n\n<p>\u5982\u679c\u4f60\u89c9\u5f97\u4f60\u5df2\u7ecf\u51c6\u5907\u597d\u4e86\u5b66\u4e60\u600e\u4e48\u5b9e\u73b0\uff0c\u4e00\u5b9a\u8981\u53bb\u5b66\u4e00\u5b66TensorFlow\u7684<a rel=\"noreferrer noopener\" aria-label=\"seq2seq\u6559\u7a0b\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\" href=\"https:\/\/github.com\/tensorflow\/nmt\" target=\"_blank\">seq2seq\u6559\u7a0b<\/a>\u3002<\/p>\n\n\n<p><\/p>\n\n\n<p>\u7ffb\u8bd1\u6574\u7406\u81ea,Jay Alamar,<a rel=\"noreferrer noopener\" aria-label=\"Visualizing A Neural Machine Translation Model (Mechanics of Seq2seq Models With Attention)\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\" href=\"https:\/\/jalammar.github.io\/visualizing-neural-machine-translation-mechanics-of-seq2seq-models-with-attention\/\" target=\"_blank\">Visualizing A Neural Machine Translation Model (Mechanics of Seq2seq Models With Attention)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sequence-to- Sequence \u6a21\u578b\u662f\u4e00\u4e2a\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b\uff0c\u5b83\u80fd\u591f\u6210\u529f\u5b8c\u6210\u4f8b\u5982\u673a\u5668\u7ffb\u8bd1\u3001\u6587\u672c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8,13],"tags":[30,37,40],"views":10257,"_links":{"self":[{"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/posts\/3487"}],"collection":[{"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/comments?post=3487"}],"version-history":[{"count":0,"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/posts\/3487\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/media?parent=3487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/categories?post=3487"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sniper97.cn\/index.php\/wp-json\/wp\/v2\/tags?post=3487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}