{"id":15915,"date":"2024-07-09T21:21:00","date_gmt":"2024-07-09T13:21:00","guid":{"rendered":"http:\/\/139.9.1.231\/?p=15915"},"modified":"2025-01-06T16:24:39","modified_gmt":"2025-01-06T08:24:39","slug":"sequence-modeling-with-ctc","status":"publish","type":"post","link":"http:\/\/139.9.1.231\/index.php\/2024\/07\/09\/sequence-modeling-with-ctc\/","title":{"rendered":"Sequence Modeling With CTC"},"content":{"rendered":"\n<p class=\"has-text-align-center\"><strong>\u7f51\u5740\uff1a <a href=\"https:\/\/distill.pub\/2017\/ctc\/\">https:\/\/distill.pub\/2017\/ctc\/<\/a><\/strong><\/p>\n\n\n\n<p>        \u5728\u8bed\u97f3\u8bc6\u522b\u4e2d\uff0c\u6211\u4eec\u7684\u6570\u636e\u96c6\u662f\u97f3\u9891\u6587\u4ef6\u548c\u5176\u5bf9\u5e94\u7684\u6587\u672c\uff0c\u4e0d\u5e78\u7684\u662f\uff0c\u97f3\u9891\u6587\u4ef6\u548c\u6587\u672c\u5f88\u96be\u5728\u5355\u8bcd\u7684\u5355\u4f4d\u4e0a\u5bf9\u9f50\u3002\u9664\u4e86\u8bed\u8a00\u8bc6\u522b\uff0c\u5728OCR\uff0c\u673a\u5668\u7ffb\u8bd1\u4e2d\uff0c\u90fd\u5b58\u5728\u7c7b\u4f3c\u7684Sequence to Sequence\u7ed3\u6784\uff0c\u540c\u6837\u4e5f\u9700\u8981\u5728\u9884\u5904\u7406\u64cd\u4f5c\u65f6\u8fdb\u884c\u5bf9\u9f50\uff0c\u4f46\u662f\u8fd9\u79cd\u5bf9\u9f50\u6709\u65f6\u5019\u662f\u975e\u5e38\u56f0\u96be\u7684\u3002\u5982\u679c\u4e0d\u4f7f\u7528\u5bf9\u9f50\u800c\u76f4\u63a5\u8bad\u7ec3\u6a21\u578b\u65f6\uff0c\u7531\u4e8e\u4eba\u7684\u8bed\u901f\u7684\u4e0d\u540c\uff0c\u6216\u8005\u5b57\u7b26\u95f4\u8ddd\u79bb\u7684\u4e0d\u540c\uff0c\u5bfc\u81f4\u6a21\u578b\u5f88\u96be\u6536\u655b\u3002<\/p>\n\n\n\n<p>     \u6211\u4eec\u53ef\u4ee5\u8bbe\u8ba1\u4e00\u4e2a\u89c4\u5219\uff0c\u6bd4\u5982\u201c\u4e00\u4e2a\u5b57\u7b26\u5bf9\u5e94\u5341\u4e2a\u8bed\u97f3\u8f93\u5165\u201d\u3002\u4f46\u662f\u4eba\u4eec\u7684\u8bed\u901f\u662f\u4e0d\u540c\u7684\uff0c\u6240\u4ee5\u8fd9\u79cd\u89c4\u5219\u603b\u662f\u53ef\u4ee5\u88ab\u6253\u7834\u7684\u3002\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u624b\u52a8\u5c06\u6bcf\u4e2a\u5b57\u7b26\u4e0e\u5176\u5728\u97f3\u9891\u4e2d\u7684\u4f4d\u7f6e\u5bf9\u9f50\u3002\u4ece\u5efa\u6a21\u7684\u89d2\u5ea6\u6765\u770b\uff0c\u8fd9\u5de5\u4f5c\u5f97\u5f88\u597d\uff0c\u6211\u4eec\u77e5\u9053\u6bcf\u4e2a\u8f93\u5165\u65f6\u95f4\u6b65\u7684\u57fa\u672c\u4e8b\u5b9e\u3002\u2009\u7136\u800c\uff0c\u8fd9\u5bf9\u6570\u636e\u96c6\u7684\u6807\u6ce8\u5de5\u4f5c\u662f\u975e\u5e38\u8017\u65f6\u7684\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"403\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-35-1024x403.png\" alt=\"\" class=\"wp-image-15919\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-35-1024x403.png 1024w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-35-300x118.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-35-768x302.png 768w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-35-1536x604.png 1536w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-35.png 1549w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u4e2a\u95ee\u9898\u4e0d\u4ec5\u4ec5\u51fa\u73b0\u5728\u8bed\u97f3\u8bc6\u522b\u4e2d\u3002\u6211\u4eec\u5728\u8bb8\u591a\u5176\u4ed6\u5730\u65b9\u770b\u5230\u5b83\u3002\u6765\u81ea\u56fe\u50cf\u6216\u7b14\u753b\u5e8f\u5217\u7684\u624b\u5199\u8bc6\u522b\u5c31\u662f\u4e00\u4e2a\u4f8b\u5b50\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"375\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-36-1024x375.png\" alt=\"\" class=\"wp-image-15928\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-36-1024x375.png 1024w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-36-300x110.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-36-768x281.png 768w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-36.png 1075w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>CTC(Connectionist Temporal Classification \u8fde\u63a5\u65f6\u5e8f\u5206\u7c7b)\u662f\u4e00\u79cd\u907f\u5f00\u8f93\u5165\u4e0e\u8f93\u51fa\u624b\u52a8\u5bf9\u9f50\u7684\u4e00\u79cd\u65b9\u5f0f\uff0c\u662f\u975e\u5e38\u9002\u5408\u8bed\u97f3\u8bc6\u522b\u6216\u8005OCR\u8fd9\u79cd\u5e94\u7528\u7684\u3002<\/strong><\/p>\n\n\n\n<p>\u7ed9\u5b9a\u8f93\u5165\u5e8f\u5217&nbsp;\ud835\udc4b=[\ud835\udc651,\ud835\udc652,&#8230;,\ud835\udc65\ud835\udc47]&nbsp;\u4ee5\u53ca\u5bf9\u5e94\u7684\u6807\u7b7e\u6570\u636e&nbsp;\ud835\udc4c=[\ud835\udc661,\ud835\udc662,..,\ud835\udc66\ud835\udc48]&nbsp;,\u4f8b\u5982\u8bed\u97f3\u8bc6\u522b\u4e2d\u7684\u97f3\u9891\u6587\u4ef6\u548c\u6587\u672c\u6587\u4ef6\u3002\u6211\u4eec\u7684\u5de5\u4f5c\u662f\u627e\u5230&nbsp;\ud835\udc4b&nbsp;\u5230&nbsp;\ud835\udc4c&nbsp;\u7684\u4e00\u4e2a\u6620\u5c04\uff0c\u8fd9\u79cd\u5bf9\u65f6\u5e8f\u6570\u636e\u8fdb\u884c\u5206\u7c7b\u7684\u7b97\u6cd5\u53eb\u505aTemporal Classification\u3002<\/p>\n\n\n\n<p>\u5bf9\u6bd4\u4f20\u7edf\u7684\u5206\u7c7b\u65b9\u6cd5\uff0c\u65f6\u5e8f\u5206\u7c7b\u6709\u5982\u4e0b\u96be\u70b9\uff1a<\/p>\n\n\n\n<ol><li>\ud835\udc4b&nbsp;\u548c&nbsp;\ud835\udc4c&nbsp;\u7684\u957f\u5ea6\u90fd\u662f\u53d8\u5316\u7684\uff1b<\/li><li>\ud835\udc4b&nbsp;\u548c&nbsp;\ud835\udc4c&nbsp;\u7684\u957f\u5ea6\u662f\u4e0d\u76f8\u7b49\u7684\uff1b<\/li><li>\u5bf9\u4e8e\u4e00\u4e2a\u7aef\u5230\u7aef\u7684\u6a21\u578b\uff0c\u6211\u4eec\u5e76\u4e0d\u5e0c\u671b\u624b\u52a8\u8bbe\u8ba1\ud835\udc4b&nbsp;\u548c&nbsp;\ud835\udc4c&nbsp;\u7684\u4e4b\u95f4\u7684\u5bf9\u9f50\u3002<\/li><\/ol>\n\n\n\n<p>        CTC\u63d0\u4f9b\u4e86\u89e3\u51b3\u65b9\u6848\uff0c\u5bf9\u4e8e\u4e00\u4e2a\u7ed9\u5b9a\u7684\u8f93\u5165\u5e8f\u5217&nbsp;\ud835\udc4b&nbsp;\uff0cCTC\u7ed9\u51fa\u6240\u6709\u53ef\u80fd\u7684&nbsp;\ud835\udc4c&nbsp;\u7684\u8f93\u51fa\u5206\u5e03\u3002\u6839\u636e\u8fd9\u4e2a\u5206\u5e03\uff0c\u6211\u4eec\u53ef\u4ee5\u8f93\u51fa\u6700\u53ef\u80fd\u7684\u7ed3\u679c\u6216\u8005\u7ed9\u51fa\u67d0\u4e2a\u8f93\u51fa\u7684\u6982\u7387\u3002\u6211\u4eec\u4f1a\u8981\u6c42CTC\u6709\u6548\u5730\u5b8c\u6210\u4e0b\u9762\u8fd9\u4e24\u4ef6\u4e8b\u3002<\/p>\n\n\n\n<p>       1\u3001\u635f\u5931\u51fd\u6570\uff1a\u7ed9\u5b9a\u8f93\u5165\u5e8f\u5217&nbsp;\ud835\udc4b&nbsp;\uff0c\u6211\u4eec\u5e0c\u671b\u6700\u5927\u5316&nbsp;\ud835\udc4c&nbsp;\u7684\u540e\u9a8c\u6982\u7387&nbsp;\ud835\udc43(\ud835\udc4c|\ud835\udc4b)&nbsp;,&nbsp;\ud835\udc43(\ud835\udc4c|\ud835\udc4b)&nbsp;\u5e94\u8be5\u662f\u53ef\u5bfc\u7684\uff0c\u8fd9\u6837\u6211\u4eec\u80fd\u6267\u884c\u68af\u5ea6\u4e0b\u964d\u7b97\u6cd5\uff1b<\/p>\n\n\n\n<p>      2\u3001\u6d4b\u8bd5\uff1a\u7ed9\u5b9a\u4e00\u4e2a\u8bad\u7ec3\u597d\u7684\u6a21\u578b\u548c\u8f93\u5165\u5e8f\u5217&nbsp;\ud835\udc4b&nbsp;\uff0c\u6211\u4eec\u5e0c\u671b\u8f93\u51fa\u6982\u7387\u6700\u9ad8\u7684&nbsp;\ud835\udc4c&nbsp;:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-37.png\" alt=\"\" class=\"wp-image-15941\" width=\"355\" height=\"35\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-37.png 645w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-37-300x30.png 300w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/><\/figure><\/div>\n\n\n\n<p>\u5f53\u7136\uff0c\u5728\u6d4b\u8bd5\u65f6\uff0c\u6211\u4eec\u5e0c\u671b&nbsp;\ud835\udc4c\u2217&nbsp;\u80fd\u591f\u5c3d\u5feb\u7684\u88ab\u641c\u7d22\u5230\u3002<\/p>\n\n\n\n<h2>\u7b97\u6cd5\u8be6\u89e3<\/h2>\n\n\n\n<p>\u7ed9\u5b9a\u8f93\u5165&nbsp;\ud835\udc4b&nbsp;\uff0cCTC\u8f93\u51fa\u6bcf\u4e2a\u53ef\u80fd\u8f93\u51fa\u53ca\u5176\u6761\u4ef6\u6982\u7387\u3002<strong>\u95ee\u9898\u7684\u5173\u952e\u662fCTC\u7684\u8f93\u51fa\u6982\u7387\u662f\u5982\u4f55\u8003\u8651&nbsp;\ud835\udc4b&nbsp;\u548c&nbsp;\ud835\udc4c&nbsp;\u4e4b\u95f4\u7684\u5bf9\u9f50\u7684\uff0c\u8fd9\u79cd\u5bf9\u9f50\u4e5f\u662f\u6784\u5efa\u635f\u5931\u51fd\u6570\u7684\u57fa\u7840\u3002<\/strong>\u6240\u4ee5\uff0c\u9996\u5148\u6211\u4eec\u5206\u6790CTC\u7684\u5bf9\u9f50\u65b9\u5f0f\uff0c\u7136\u540e\u6211\u4eec\u5728\u5206\u6790CTC\u7684\u635f\u5931\u51fd\u6570\u7684\u6784\u9020\u3002<\/p>\n\n\n\n<h4>1.1 \u5bf9\u9f50<\/h4>\n\n\n\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cCTC\u672c\u8eab\u662f\u4e0d\u9700\u8981\u5bf9\u9f50\u7684\uff0c\u4f46\u662f\u6211\u4eec\u9700\u8981\u77e5\u9053&nbsp;\ud835\udc4b&nbsp;\u7684\u8f93\u51fa\u8def\u5f84\u548c\u6700\u7ec8\u8f93\u51fa\u7ed3\u679c\u7684\u5bf9\u5e94\u5173\u7cfb\uff0c\u56e0\u4e3a\u5728CTC\u4e2d\uff0c\u591a\u4e2a\u8f93\u51fa\u8def\u5f84\u53ef\u80fd\u5bf9\u5e94\u4e00\u4e2a\u8f93\u51fa\u7ed3\u679c\uff0c\u4e3e\u4f8b\u6765\u7406\u89e3\u3002\u4f8b\u5982\u5728OCR\u7684\u4efb\u52a1\u4e2d\uff0c\u8f93\u5165&nbsp;\ud835\udc4b&nbsp;\u662f\u542b\u6709\u201cCAT\u201d\u7684\u56fe\u7247\uff0c\u8f93\u51fa&nbsp;\ud835\udc4c&nbsp;\u662f\u6587\u672c[C, A, T]\u3002\u5c06&nbsp;\ud835\udc4b&nbsp;\u5206\u5272\u6210\u82e5\u5e72\u4e2a\u65f6\u95f4\u7247\uff0c\u6bcf\u4e2a\u65f6\u95f4\u7247\u5f97\u5230\u4e00\u4e2a\u8f93\u51fa\uff0c\u4e00\u4e2a\u6700\u7b80\u7b54\u7684\u89e3\u51b3\u65b9\u6848\u662f\u5408\u5e76\u8fde\u7eed\u91cd\u590d\u51fa\u73b0\u7684\u5b57\u6bcd\uff0c\u5982\u56fe2.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-38.png\" alt=\"\" class=\"wp-image-15948\" width=\"387\" height=\"173\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-38.png 553w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-38-300x134.png 300w\" sizes=\"(max-width: 387px) 100vw, 387px\" \/><\/figure><\/div>\n\n\n\n<p>\u8fd9\u4e2a\u95ee\u9898\u6709\u4e24\u4e2a\u7f3a\u70b9\uff1a<\/p>\n\n\n\n<ol><li>\u51e0\u4e4e\u4e0d\u53ef\u80fd\u5c06&nbsp;\ud835\udc4b&nbsp;\u7684\u6bcf\u4e2a\u65f6\u95f4\u7247\u90fd\u548c\u8f93\u51faY\u5bf9\u5e94\u4e0a\uff0c\u4f8b\u5982OCR\u4e2d\u5b57\u7b26\u7684\u95f4\u9694\uff0c\u8bed\u97f3\u8bc6\u522b\u4e2d\u7684\u505c\u987f;<\/li><li>\u4e0d\u80fd\u5904\u7406\u6709\u8fde\u7eed\u91cd\u590d\u5b57\u7b26\u51fa\u73b0\u7684\u60c5\u51b5\uff0c\u4f8b\u5982\u5355\u8bcd\u201cHELLO\u201d\uff0c\u6309\u7167\u4e0a\u9762\u7684\u7b97\u6cd5\uff0c\u8f93\u51fa\u7684\u662f\u201cHELO\u201d\u800c\u975e\u201cHELLO\u201d\u3002<\/li><\/ol>\n\n\n\n<p><strong>\u4e3a\u4e86\u89e3\u51b3\u4e0a\u9762\u7684\u95ee\u9898\uff0cCTC\u5f15\u5165\u4e86\u7a7a\u767d\u5b57\u7b26&nbsp;\ud835\udf16&nbsp;\uff0c\u4f8b\u5982OCR\u4e2d\u7684\u5b57\u7b26\u95f4\u8ddd\uff0c\u8bed\u97f3\u8bc6\u522b\u4e2d\u7684\u505c\u987f\u5747\u8868\u793a\u4e3a&nbsp;\ud835\udf16&nbsp;\u3002\u6240\u4ee5\uff0cCTC\u7684\u5bf9\u9f50\u6d89\u53ca\u53bb\u9664\u91cd\u590d\u5b57\u6bcd\u548c\u53bb\u9664&nbsp;\ud835\udf16&nbsp;\u4e24\u90e8\u5206\uff0c\u5982\u56fe3\u3002<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-39.png\" alt=\"\" class=\"wp-image-15953\" width=\"478\" height=\"211\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-39.png 859w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-39-300x132.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-39-768x339.png 768w\" sizes=\"(max-width: 478px) 100vw, 478px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-40.png\" alt=\"\" class=\"wp-image-15956\" width=\"448\" height=\"223\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-40.png 871w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-40-300x149.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-40-768x382.png 768w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/><\/figure><\/div>\n\n\n\n<p>\u8fd9\u79cd\u5bf9\u9f50\u65b9\u5f0f\u6709\u4e09\u4e2a\u7279\u5f81\uff1a<\/p>\n\n\n\n<ol><li>\ud835\udc4b&nbsp;\u4e0e&nbsp;\ud835\udc4c&nbsp;\u4e4b\u95f4\u7684\u65f6\u95f4\u7247\u6620\u5c04\u662f\u5355\u8c03\u7684\uff0c\u5373\u5982\u679c&nbsp;\ud835\udc4b&nbsp;\u5411\u524d\u79fb\u52a8\u4e00\u4e2a\u65f6\u95f4\u7247\uff0c&nbsp;\ud835\udc4c&nbsp;\u4fdd\u6301\u4e0d\u52a8\u6216\u8005\u4e5f\u5411\u524d\u79fb\u52a8\u4e00\u4e2a\u65f6\u95f4\u7247\uff1b<\/li><li>\ud835\udc4b&nbsp;\u4e0e&nbsp;\ud835\udc4c&nbsp;\u4e4b\u95f4\u7684\u6620\u5c04\u662f\u591a\u5bf9\u4e00\u7684\uff0c\u4e00\u4e2a\u6216\u591a\u4e2a\u8f93\u5165\u5143\u7d20\u53ef\u4ee5\u4e0e\u5355\u4e2a\u8f93\u51fa\u5143\u7d20\u5bf9\u9f50\uff0c\u4f46\u53cd\u4e4b\u5219\u4e0d\u7136\uff0c\u6240\u4ee5\u4e5f\u6709\u4e86\u7279\u5f813\uff1b<\/li><li>\ud835\udc4b&nbsp;\u7684\u957f\u5ea6\u5927\u4e8e\u7b49\u4e8e&nbsp;\ud835\udc4c&nbsp;\u7684\u957f\u5ea6\u3002<\/li><\/ol>\n\n\n\n<h4> 1.2 \u635f\u5931\u51fd\u6570<\/h4>\n\n\n\n<p> CTC\u5bf9\u9f50\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u79cd\u4ece\u6bcf\u4e2a\u65f6\u95f4\u6b65\u7684\u6982\u7387\u5230\u8f93\u51fa\u5e8f\u5217\u7684\u6982\u7387\u7684\u81ea\u7136\u65b9\u6cd5\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https:\/\/distill.pub\/2017\/ctc\/assets\/full_collapse_from_audio.svg\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<p>\u4e5f\u5c31\u662f\u8bf4\uff0c\u5bf9\u5e94\u6807\u7b7e&nbsp;\ud835\udc4c&nbsp;\uff0c\u5176\u5173\u4e8e\u8f93\u5165&nbsp;\ud835\udc4b&nbsp;\u7684\u540e\u9a8c\u6982\u7387\u53ef\u4ee5\u8868\u793a\u4e3a\u6240\u6709\u6620\u5c04\u4e3a&nbsp;\ud835\udc4c&nbsp;\u7684\u8def\u5f84\u4e4b\u548c\uff0c\u6211\u4eec\u7684\u76ee\u6807\u5c31\u662f\u6700\u5927\u5316&nbsp;\ud835\udc4c&nbsp;\u5173\u4e8e&nbsp;\ud835\udc65=\ud835\udc66&nbsp;\u7684\u540e\u9a8c\u6982\u7387&nbsp;\ud835\udc43(\ud835\udc4c|\ud835\udc4b)&nbsp;\u3002\u5047\u8bbe\u6bcf\u4e2a\u65f6\u95f4\u7247\u7684\u8f93\u51fa\u662f\u76f8\u4e92\u72ec\u7acb\u7684\uff0c\u5219\u8def\u5f84\u7684\u540e\u9a8c\u6982\u7387\u662f\u6bcf\u4e2a\u65f6\u95f4\u7247\u6982\u7387\u7684\u7d2f\u79ef\uff0c\u516c\u5f0f\u53ca\u5176\u8be6\u7ec6\u542b\u4e49\u5982\u56fe5\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-41.png\" alt=\"\" class=\"wp-image-15962\" width=\"441\" height=\"146\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-41.png 697w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-41-300x100.png 300w\" sizes=\"(max-width: 441px) 100vw, 441px\" \/><\/figure><\/div>\n\n\n\n<p>\u4e0a\u9762\u7684CTC\u7b97\u6cd5\u5b58\u5728\u6027\u80fd\u95ee\u9898\uff0c\u5bf9\u4e8e\u4e00\u4e2a\u65f6\u95f4\u7247\u957f\u5ea6\u4e3a&nbsp;\ud835\udc47&nbsp;\u7684&nbsp;\ud835\udc41&nbsp;\u5206\u7c7b\u4efb\u52a1\uff0c\u6240\u6709\u53ef\u80fd\u7684\u8def\u5f84\u6570\u4e3a&nbsp;\ud835\udc41\ud835\udc47&nbsp;\uff0c\u5728\u5f88\u591a\u60c5\u51b5\u4e0b\uff0c\u8fd9\u51e0\u4e4e\u662f\u4e00\u4e2a\u5b87\u5b99\u7ea7\u522b\u7684\u6570\u5b57\uff0c\u7528\u4e8e\u8ba1\u7b97Loss\u51e0\u4e4e\u662f\u4e0d\u73b0\u5b9e\u7684\u3002\u5728CTC\u4e2d\u91c7\u7528\u4e86\u52a8\u6001\u89c4\u5212\u7684\u601d\u60f3\u6765\u5bf9\u67e5\u627e\u8def\u5f84\u8fdb\u884c\u526a\u679d\uff0c\u7b97\u6cd5\u7684\u6838\u5fc3\u601d\u60f3\u662f\u5982\u679c\u8def\u5f84&nbsp;\ud835\udf0b1&nbsp;\u548c\u8def\u5f84&nbsp;\ud835\udf0b2&nbsp;\u5728\u65f6\u95f4\u7247&nbsp;\ud835\udc61&nbsp;\u4e4b\u524d\u7684\u8f93\u51fa\u5747\u76f8\u7b49\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u63d0\u524d\u5408\u5e76\u4ed6\u4eec\uff0c\u5982\u56fe6\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-42.png\" alt=\"\" class=\"wp-image-15966\" width=\"554\" height=\"228\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-42.png 889w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-42-300x124.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-42-768x317.png 768w\" sizes=\"(max-width: 554px) 100vw, 554px\" \/><\/figure><\/div>\n\n\n\n<p>\u5176\u4e2d\uff0c\u6a2a\u8f74\u7684\u5355\u4f4d\u662f&nbsp;\ud835\udc4b&nbsp;\u7684\u65f6\u95f4\u7247\uff0c\u7eb5\u8f74\u7684\u5355\u4f4d\u662f&nbsp;\ud835\udc4c&nbsp;\u63d2\u5165&nbsp;\ud835\udf16&nbsp;\u7684\u5e8f\u5217&nbsp;\ud835\udc4d&nbsp;\u3002\u4f8b\u5982\u5bf9\u4e8e\u5355\u8bcd\u201cZOO\u201d\uff0c\u63d2\u5165&nbsp;\ud835\udf16&nbsp;\u540e\u4e3a\uff1a<\/p>\n\n\n\n<p class=\"has-text-align-center\">\ud835\udc4d={\ud835\udf16,\ud835\udc4d,\ud835\udf16,\ud835\udc42,\ud835\udf16,\ud835\udc42,\ud835\udf16}<\/p>\n\n\n\n<p>\u6211\u4eec\u7528&nbsp;\ud835\udefc\ud835\udc60,\ud835\udc61&nbsp;\u8868\u793a\u8def\u5f84\u4e2d\u5df2\u7ecf\u5408\u5e76\u7684\u5728\u6a2a\u8f74\u5355\u4f4d\u4e3a&nbsp;\ud835\udc61&nbsp;\uff0c\u7eb5\u8f74\u5355\u4f4d\u4e3a&nbsp;\ud835\udc60&nbsp;\u7684\u8282\u70b9\u3002\u6839\u636eCTC\u7684\u5bf9\u9f50\u65b9\u5f0f\u7684\u4e09\u4e2a\u7279\u5f81\uff0c\u8f93\u5165\u67099\u4e2a\u65f6\u95f4\u7247\uff0c\u6807\u7b7e\u5185\u5bb9\u662f\u201cZOO\u201d\uff0c&nbsp;\ud835\udc43(\ud835\udc4c|\ud835\udc4b)&nbsp;\u7684\u6240\u6709\u53ef\u80fd\u7684\u5408\u6cd5\u8def\u5f84\u5982\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/pic4.zhimg.com\/80\/v2-1f573f253f2c3255931a6a0dc8546047_720w.webp\" alt=\"\" width=\"494\" height=\"364\"\/><figcaption>\u56fe7\uff1aCTC\u4e2d\u5355\u8bcdZOO\u7684\u6240\u6709\u5408\u6cd5\u8def\u5f84<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2025\/01\/image-36.png\" alt=\"\" class=\"wp-image-23746\" width=\"203\" height=\"197\"\/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-43.png\" alt=\"\" class=\"wp-image-15973\" width=\"567\" height=\"396\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-43.png 970w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-43-300x210.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-43-768x537.png 768w\" sizes=\"(max-width: 567px) 100vw, 567px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2025\/01\/image-37.png\" alt=\"\" class=\"wp-image-23747\" width=\"190\" height=\"190\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2025\/01\/image-37.png 231w, http:\/\/139.9.1.231\/wp-content\/uploads\/2025\/01\/image-37-150x150.png 150w, http:\/\/139.9.1.231\/wp-content\/uploads\/2025\/01\/image-37-120x120.png 120w\" sizes=\"(max-width: 190px) 100vw, 190px\" \/><\/figure><\/div>\n\n\n\n<p>\u6709\u4e24\u4e2a\u6709\u6548\u7684\u8d77\u59cb\u8282\u70b9\u548c\u4e24\u4e2a\u6709\u6548\u7684\u6700\u7ec8\u8282\u70b9\uff0c\u56e0\u4e3a\u5e8f\u5217\u5f00\u5934\u548c\u7ed3\u5c3e\u7684\u00a0\ud835\udf16<em>\u03f5<\/em>\u00a0\u662f\u53ef\u9009\u7684\u3002\u5b8c\u5168\u6982\u7387\u662f\u6700\u540e\u4e24\u4e2a\u8282\u70b9\u7684\u548c\u3002\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u6709\u6548\u5730\u8ba1\u7b97\u635f\u5931\u51fd\u6570\uff0c\u4e0b\u4e00\u6b65\u662f\u8ba1\u7b97\u68af\u5ea6\u5e76\u8bad\u7ec3\u6a21\u578b\u3002CTC\u635f\u5931\u51fd\u6570\u76f8\u5bf9\u4e8e\u6bcf\u4e2a\u65f6\u95f4\u6b65\u7684\u8f93\u51fa\u6982\u7387\u662f\u53ef\u5fae\u7684\uff0c\u56e0\u4e3a\u5b83\u53ea\u662f\u5b83\u4eec\u7684\u603b\u548c\u548c\u4e58\u79ef\u3002\u8003\u8651\u5230\u8fd9\u4e00\u70b9\uff0c\u6211\u4eec\u53ef\u4ee5\u89e3\u6790\u5730\u8ba1\u7b97\u635f\u5931\u51fd\u6570\u76f8\u5bf9\u4e8e\uff08\u672a\u5f52\u4e00\u5316\u7684\uff09\u8f93\u51fa\u6982\u7387\u7684\u68af\u5ea6\uff0c\u5e76\u4ece\u90a3\u91cc\u50cf\u5f80\u5e38\u4e00\u6837\u8fd0\u884c\u53cd\u5411\u4f20\u64ad\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"841\" height=\"432\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2025\/01\/image-38.png\" alt=\"\" class=\"wp-image-23749\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2025\/01\/image-38.png 841w, http:\/\/139.9.1.231\/wp-content\/uploads\/2025\/01\/image-38-300x154.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2025\/01\/image-38-768x395.png 768w\" sizes=\"(max-width: 841px) 100vw, 841px\" \/><figcaption>\u56fe7<\/figcaption><\/figure>\n\n\n\n<p>\u5bf9\u4e8e\u6570\u636e\u96c6&nbsp;\ud835\udc37&nbsp;\uff0c\u6a21\u578b\u7684\u4f18\u5316\u76ee\u6807\u662f\u6700\u5c0f\u5316\u8d1f\u5bf9\u6570\u4f3c\u7136:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-44.png\" alt=\"\" class=\"wp-image-15975\" width=\"225\" height=\"53\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-44.png 358w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-44-300x71.png 300w\" sizes=\"(max-width: 225px) 100vw, 225px\" \/><\/figure><\/div>\n\n\n\n<h2>1.3 \u9884\u6d4b<\/h2>\n\n\n\n<p>\u5f53\u6211\u4eec\u8bad\u7ec3\u597d\u4e00\u4e2aRNN\u6a21\u578b\u65f6\uff0c\u7ed9\u5b9a\u4e00\u4e2a\u8f93\u5165\u5e8f\u5217&nbsp;\ud835\udc4b&nbsp;\uff0c\u6211\u4eec\u9700\u8981\u627e\u5230\u6700\u53ef\u80fd\u7684\u8f93\u51fa\uff0c\u4e5f\u5c31\u662f\u6c42\u89e3<\/p>\n\n\n\n<p class=\"has-text-align-center\">\ud835\udc4c\u2217=arg\u2061max\ud835\udc4c\u2061\ud835\udc5d(\ud835\udc4c|\ud835\udc4b)<\/p>\n\n\n\n<p>\u6c42\u89e3\u6700\u53ef\u80fd\u7684\u8f93\u51fa\u6709\u4e24\u79cd\u65b9\u6848\uff0c\u4e00\u79cd\u662fGreedy Search\uff0c\u7b2c\u4e8c\u79cd\u662fbeam search<\/p>\n\n\n\n<p>1.3.1 Greedy Search<\/p>\n\n\n\n<p>\u6bcf\u4e2a\u65f6\u95f4\u7247\u5747\u53d6\u8be5\u65f6\u95f4\u7247\u6982\u7387\u6700\u9ad8\u7684\u8282\u70b9\u4f5c\u4e3a\u8f93\u51fa\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-45.png\" alt=\"\" class=\"wp-image-15979\" width=\"272\" height=\"59\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-45.png 445w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-45-300x65.png 300w\" sizes=\"(max-width: 272px) 100vw, 272px\" \/><\/figure><\/div>\n\n\n\n<p>1.3.2 Beam Search<\/p>\n\n\n\n<p>Beam Search\u662f\u5bfb\u627e\u5168\u5c40\u6700\u4f18\u503c\u548cGreedy Search\u5728\u67e5\u627e\u65f6\u95f4\u548c\u6a21\u578b\u7cbe\u5ea6\u7684\u4e00\u4e2a\u6298\u4e2d\u3002\u4e00\u4e2a\u7b80\u5355\u7684beam search\u5728\u6bcf\u4e2a\u65f6\u95f4\u7247\u8ba1\u7b97\u6240\u6709\u53ef\u80fd\u5047\u8bbe\u7684\u6982\u7387\uff0c\u5e76\u4ece\u4e2d\u9009\u51fa\u6700\u9ad8\u7684\u51e0\u4e2a\u4f5c\u4e3a\u4e00\u7ec4\u3002\u7136\u540e\u518d\u4ece\u8fd9\u7ec4\u5047\u8bbe\u7684\u57fa\u7840\u4e0a\u4ea7\u751f\u6982\u7387\u6700\u9ad8\u7684\u51e0\u4e2a\u4f5c\u4e3a\u4e00\u7ec4\u5047\u8bbe\uff0c\u4f9d\u6b21\u8fdb\u884c\uff0c\u76f4\u5230\u8fbe\u5230\u6700\u540e\u4e00\u4e2a\u65f6\u95f4\u7247\uff0c\u4e0b\u56fe\u662fbeam search\u7684\u5bbd\u5ea6\u4e3a3\u7684\u641c\u7d22\u8fc7\u7a0b\uff0c\u7ea2\u7ebf\u4e3a\u9009\u4e2d\u7684\u5047\u8bbe\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"828\" height=\"606\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-46.png\" alt=\"\" class=\"wp-image-15983\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-46.png 828w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-46-300x220.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2024\/07\/image-46-768x562.png 768w\" sizes=\"(max-width: 828px) 100vw, 828px\" \/><\/figure>\n\n\n\n<p>\u5230\u76ee\u524d\u4e3a\u6b62\uff0c\u6211\u4eec\u63d0\u5230\u4e86CTC\u7684\u4e00\u4e9b\u91cd\u8981\u5c5e\u6027\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u66f4\u6df1\u5165\u5730\u4e86\u89e3\u8fd9\u4e9b\u5c5e\u6027\u662f\u4ec0\u4e48\u4ee5\u53ca\u5b83\u4eec\u63d0\u4f9b\u4e86\u4ec0\u4e48\u6837\u7684\u6743\u8861\u3002<\/p>\n\n\n\n<h4>CTC\u7684\u6027\u8d28\uff1a<\/h4>\n\n\n\n<ol><li><strong>\u6761\u4ef6\u72ec\u7acb\uff1aCTC\u7684\u4e00\u4e2a\u975e\u5e38\u4e0d\u5408\u7406\u7684\u5047\u8bbe\u662f\u5176\u5047\u8bbe\u6bcf\u4e2a\u65f6\u95f4\u7247\u90fd\u662f\u76f8\u4e92\u72ec\u7acb\u7684\uff0c\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u4e0d\u597d\u7684\u5047\u8bbe\u3002\u5728OCR\u6216\u8005\u8bed\u97f3\u8bc6\u522b\u4e2d\uff0c\u5404\u4e2a\u65f6\u95f4\u7247\u4e4b\u95f4\u662f\u542b\u6709\u4e00\u4e9b\u8bed\u4e49\u4fe1\u606f\u7684\uff0c\u6240\u4ee5\u5982\u679c\u80fd\u591f\u5728CTC\u4e2d\u52a0\u5165\u8bed\u8a00\u6a21\u578b\u7684\u8bdd\u6548\u679c\u5e94\u8be5\u4f1a\u6709\u63d0\u5347\u3002<\/strong><\/li><li>\u5355\u8c03\u5bf9\u9f50\uff1aCTC\u7684\u53e6\u5916\u4e00\u4e2a\u7ea6\u675f\u662f\u8f93\u5165&nbsp;\ud835\udc4b&nbsp;\u4e0e\u8f93\u51fa&nbsp;\ud835\udc4c&nbsp;\u4e4b\u95f4\u7684\u5355\u8c03\u5bf9\u9f50\uff0c\u5728OCR\u548c\u8bed\u97f3\u8bc6\u522b\u4e2d\uff0c\u8fd9\u79cd\u7ea6\u675f\u662f\u6210\u7acb\u7684\u3002\u4f46\u662f\u5728\u4e00\u4e9b\u573a\u666f\u4e2d\u4f8b\u5982\u673a\u5668\u7ffb\u8bd1\uff0c\u8fd9\u4e2a\u7ea6\u675f\u4fbf\u65e0\u6548\u4e86\u3002<\/li><li>\u591a\u5bf9\u4e00\u6620\u5c04\uff1aCTC\u7684\u53c8\u4e00\u4e2a\u7ea6\u675f\u662f\u8f93\u5165\u5e8f\u5217&nbsp;\ud835\udc4b&nbsp;\u7684\u957f\u5ea6\u5927\u4e8e\u6807\u7b7e\u6570\u636e&nbsp;\ud835\udc4c&nbsp;\u7684\u957f\u5ea6\uff0c\u4f46\u662f\u5bf9\u4e8e&nbsp;\ud835\udc4c&nbsp;\u7684\u957f\u5ea6\u5927\u4e8e&nbsp;\ud835\udc4b&nbsp;\u7684\u957f\u5ea6\u7684\u573a\u666f\uff0cCTC\u4fbf\u5931\u6548\u4e86\u3002<\/li><\/ol>\n\n\n\n<h2>Practitioner\u2019s Guide<\/h2>\n\n\n\n<p>\u5230\u76ee\u524d\u4e3a\u6b62\uff0c\u6211\u4eec\u5df2\u7ecf\u5bf9 CTC \u6709\u4e86\u6982\u5ff5\u6027\u7684\u7406\u89e3\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u4e3a\u4ece\u4e1a\u8005\u63d0\u4f9b\u4e00\u4e9b\u5b9e\u73b0\u6280\u5de7\u3002<\/p>\n\n\n\n<p>\u8f6f\u4ef6\uff1a\u5373\u4f7f\u5bf9 CTC \u6709\u6df1\u5165\u7684\u4e86\u89e3\uff0c\u5b9e\u65bd\u4e5f\u5f88\u56f0\u96be\u3002\u8be5\u7b97\u6cd5\u6709\u51e0\u4e2a\u8fb9\u7f18\u60c5\u51b5\uff0c\u5e94\u8be5\u7528\u8f83\u4f4e\u7ea7\u522b\u7684\u7f16\u7a0b\u8bed\u8a00\u7f16\u5199\u5feb\u901f\u5b9e\u73b0\u3002\u5f00\u6e90\u8f6f\u4ef6\u5de5\u5177\u4f7f\u5165\u95e8\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\uff1a<\/p>\n\n\n\n<ul><li>\u767e\u5ea6\u7814\u7a76\u5df2\u7ecf\u5f00\u6e90\u4e86<a href=\"https:\/\/github.com\/baidu-research\/warp-ctc\">warp-ctc<\/a>\u3002\u8be5\u8f6f\u4ef6\u5305\u662f\u7528 C++ \u548c CUDA \u7f16\u5199\u7684\u3002CTC \u635f\u5931\u51fd\u6570\u5728 CPU \u6216 GPU \u4e0a\u8fd0\u884c\u3002\u7ed1\u5b9a\u53ef\u7528\u4e8e Torch\u3001TensorFlow \u548c PyTorch\u3002<\/li><li>TensorFlow \u4e3a CPU \u5185\u7f6e\u4e86\u00a0<a href=\"https:\/\/www.tensorflow.org\/api_docs\/python\/tf\/nn\/ctc_loss\">CTC loss<\/a>\u00a0and\u00a0<a href=\"https:\/\/www.tensorflow.org\/api_docs\/python\/tf\/nn\/ctc_beam_search_decoder\">CTC beam search<\/a>\u00a0\u675f\u641c\u7d22\u51fd\u6570\u3002<\/li><li>Nvidia \u8fd8\u5728<a href=\"https:\/\/developer.nvidia.com\/cudnn\">cuDNN<\/a>\u00a0\u7248\u672c 7 \u53ca\u66f4\u9ad8\u7248\u672c\u4e2d\u63d0\u4f9b\u4e86 CTC \u7684 GPU \u5b9e\u73b0\u3002<\/li><\/ul>\n\n\n\n<p><strong>Numerical Stability:<\/strong>\u8ba1\u7b97 CTC \u635f\u5931\u5728\u6570\u503c\u4e0a\u662f\u4e0d\u7a33\u5b9a\u7684\u3002\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\u7684\u4e00\u79cd\u65b9\u6cd5\u662f\u5728\u6bcf\u4e2a\u65f6\u95f4\u6b65\u957f\u5f52\u4e00\u5316\u00a0\u03b1\u3002\u5728\u5b9e\u8df5\u4e2d\uff0c\u8fd9\u5bf9\u4e8e\u4e2d\u7b49\u957f\u5ea6\u7684\u5e8f\u5217\u6765\u8bf4\u5df2\u7ecf\u8db3\u591f\u597d\u4e86\uff0c\u4f46\u5bf9\u4e8e\u957f\u5e8f\u5217\u6765\u8bf4\uff0c\u5b83\u4ecd\u7136\u4f1a\u4e0b\u6ea2\u3002\u66f4\u597d\u7684\u89e3\u51b3\u65b9\u6848\u662f\u4f7f\u7528 log-sum-exp \u6280\u5de7\u8ba1\u7b97\u5bf9\u6570\u7a7a\u95f4\u4e2d\u7684\u635f\u5931\u51fd\u6570\u3002\u00a0<sup>4\u00a0<\/sup>\u5728\u5bf9\u6570\u7a7a\u95f4\u4e2d\u8ba1\u7b97\u4e24\u4e2a\u6982\u7387\u4e4b\u548c\u65f6\uff0c\u4f7f\u7528\u6052\u7b49\u5f0f.\u8fd8\u5e94\u4f7f\u7528 log-sum-exp \u6280\u5de7\u5728 log-space \u4e2d\u8fdb\u884c\u63a8\u7406\u3002<\/p>\n\n\n\n<p><strong>Beam Search:<\/strong>\u00a0<\/p>\n\n\n\n<p>\u4f7f\u7528\u6ce2\u675f\u641c\u7d22\u89e3\u7801\u5668\u65f6\u7684\u4e00\u4e2a\u5e38\u89c1\u95ee\u9898\u662f\u8981\u4f7f\u7528\u7684\u6ce2\u675f\u7684\u5927\u5c0f\u3002\u51c6\u786e\u6027\u548c\u8fd0\u884c\u65f6\u95f4\u4e4b\u95f4\u5b58\u5728\u6743\u8861\u3002\u6211\u4eec\u53ef\u4ee5\u68c0\u67e5\u5149\u675f\u5c3a\u5bf8\u662f\u5426\u5728\u826f\u597d\u7684\u8303\u56f4\u5185\u3002\u4e3a\u6b64\uff0c\u9996\u5148\u8ba1\u7b97\u63a8\u65ad\u8f93\u51fa\u00a0<em>ci<\/em>\u200b.\u00a0\u7684 CTC \u5206\u6570\uff0c\u7136\u540e\u8ba1\u7b97\u771f\u503c\u8f93\u51fa\u00a0<em>cg<\/em>\u200b.\u00a0\u7684 CTC \u5206\u6570 \u5982\u679c\u4e24\u4e2a\u8f93\u51fa\u4e0d\u540c\uff0c\u6211\u4eec\u5e94\u8be5\u6709<em>cg<\/em>\u200b&lt;<em>ci<\/em>\u200b.\u00a0If<em>ci<\/em>\u200b&lt;&lt;<em>cg<\/em>\u200b\u00a0\uff0c\u90a3\u4e48\u771f\u503c\u8f93\u51fa\u5728\u6a21\u578b\u4e0b\u5b9e\u9645\u4e0a\u5177\u6709\u66f4\u9ad8\u7684\u6982\u7387\uff0c\u5e76\u4e14\u5149\u675f\u641c\u7d22\u672a\u80fd\u627e\u5230\u5b83\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u5927\u5e45\u589e\u52a0\u5149\u675f\u5c3a\u5bf8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f51\u5740\uff1a https:\/\/distill.pub\/2017\/ctc\/ \u5728\u8bed\u97f3\u8bc6\u522b\u4e2d\uff0c\u6211\u4eec\u7684\u6570\u636e\u96c6\u662f\u97f3\u9891\u6587\u4ef6\u548c\u5176\u5bf9 &hellip; <a href=\"http:\/\/139.9.1.231\/index.php\/2024\/07\/09\/sequence-modeling-with-ctc\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">Sequence Modeling With CTC<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,38,34],"tags":[],"_links":{"self":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/15915"}],"collection":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/comments?post=15915"}],"version-history":[{"count":71,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/15915\/revisions"}],"predecessor-version":[{"id":23759,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/15915\/revisions\/23759"}],"wp:attachment":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/media?parent=15915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/categories?post=15915"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/tags?post=15915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}