{"id":299738,"date":"2020-03-05T21:00:18","date_gmt":"2020-03-05T21:00:18","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=299738"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=299738","title":{"rendered":"\u041d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/491260\/\">\n<p>\u041f\u0440\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435\u043c (Speech-To-Text) \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439 (Text-To-Speech) \u0440\u0435\u0447\u0438 \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043d\u0451\u0441 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0438\u0439 \u2014 \u0442\u043e \u0435\u0441\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u043e <strong>\u0443\u0441\u0442\u043d\u043e\u0439<\/strong> \u0440\u0435\u0447\u0438. \u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c <strong>\u043f\u0438\u0441\u044c\u043c\u0435\u043d\u043d\u0430\u044f<\/strong> \u0440\u0435\u0447\u044c \u0441\u0442\u0430\u043d\u0435\u0442 \u043d\u0430\u0448\u0438\u043c \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c, \u0435\u0451 \u043d\u0443\u0436\u043d\u043e <strong>\u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c<\/strong>.<\/p>\n<p>  <\/p>\n<p>\u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0442\u0435\u043a\u0441\u0442 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0430\u043f\u043e\u0432:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0417\u0430\u043c\u0435\u043d\u0430 \u0447\u0438\u0441\u043b\u0430 \u043f\u0440\u043e\u043f\u0438\u0441\u044c\u044e: <code>1984 \u0433\u043e\u0434<\/code> -&gt; <em>\u0442\u044b\u0441\u044f\u0447\u0430 \u0434\u0435\u0432\u044f\u0442\u044c\u0441\u043e\u0442 \u0432\u043e\u0441\u0435\u043c\u044c\u0434\u0435\u0441\u044f\u0442 \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u044b\u0439 \u0433\u043e\u0434<\/em>;<\/li>\n<li>\u0420\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0430 \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0439: <code>2 \u043c\u0438\u043d. \u043d\u0435\u043d\u0430\u0432\u0438\u0441\u0442\u0438<\/code> -&gt; <em>\u0434\u0432\u0435 \u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0435\u043d\u0430\u0432\u0438\u0441\u0442\u0438<\/em>; <\/li>\n<li>\u0422\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0446\u0438\u044f \u043b\u0430\u0442\u0438\u043d\u0438\u0446\u044b: <code>Orwell<\/code> -&gt; <code>\u041e\u0440\u0443\u044d\u043b\u043b<\/code> \u0438 \u0442.\u0434.<\/li>\n<\/ul>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pics.spark-in.me\/upload\/7c12fea58ff515ffb46df52b6050ace0.jpg\" alt=\"Normalization\"\/><\/p>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043a\u043e\u0440\u043e\u0442\u043a\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u043b\u0430\u0441\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0435 \u0440\u0443\u0441\u0441\u043a\u043e\u0439 \u0440\u0435\u0447\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/474462\/\">Open_STT<\/a>, \u043a\u0430\u043a\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0438 \u043e \u043d\u0430\u0448\u0435\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0435 \u043a \u0437\u0430\u0434\u0430\u0447\u0435. <\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0448\u0435\u043d\u043a\u0430 \u043d\u0430 \u0442\u043e\u0440\u0442\u0435, \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0430\u0448 \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u0437\u0435 seq2seq \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f: <a href=\"https:\/\/github.com\/snakers4\/russian_stt_text_normalization\">\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 github<\/a>. \u041e\u043d \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442 \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">norm = Normalizer() result = norm.norm_text('\u0421 9 \u0434\u043e 11 \u043a\u043e\u0442\u0438\u043a\u0438 \u043a\u0443\u0448\u0430\u043b\u0438 whiskas')<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">&gt;&gt;&gt; '\u0421 \u0434\u0435\u0432\u044f\u0442\u0438 \u0434\u043e \u043e\u0434\u0438\u043d\u043d\u0430\u0434\u0446\u0430\u0442\u0438 \u043a\u043e\u0442\u0438\u043a\u0438 \u043a\u0443\u0448\u0430\u043b\u0438 \u0443\u0438\u0441\u043a\u0430\u0441'<\/code><\/pre>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2 id=\"podrobnee-pro-zadachu\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u0440\u043e \u0437\u0430\u0434\u0430\u0447\u0443<\/h2>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u0432 \u0447\u0451\u043c \u0436\u0435, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430? \u0421\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043d\u0430 \u0442\u043e \u0438 \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u044f, \u0447\u0442\u043e \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0442\u0443\u0442 \u0432\u0441\u0451 \u043d\u0435 \u0442\u0430\u043a \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u0438 \u0431\u0435\u0437 \u0438\u043d\u0442\u0443\u0438\u0446\u0438\u0438 \u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044f \u044f\u0437\u044b\u043a\u0430 \u0432\u043e \u0432\u0441\u0435\u0445 \u043d\u044e\u0430\u043d\u0441\u0430\u0445 \u0442\u044f\u0436\u0435\u043b\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0433\u043b\u0443\u0431\u043e\u043a\u0430 \u043a\u0440\u043e\u043b\u0438\u0447\u044c\u044f \u043d\u043e\u0440\u0430, \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0441 \u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438:<\/p>\n<p>  <\/p>\n<ul>\n<li><code>2\u0435<\/code> \u2014 <em>\u0432\u0442\u043e\u0440\u043e\u0435(\u044b\u0435)<\/em>, \u043d\u043e <code>\u0434. 2\u0435<\/code> \u2014 <em>\u0434\u0432\u0430 \u0435<\/em>;<\/li>\n<li><code>2 \u0447\u0430\u0441\u0442\u0438<\/code> \u2014 <em>\u0434\u0432\u0435<\/em> \u0447\u0430\u0441\u0442\u0438, \u043d\u043e <code>\u043d\u0435\u0442 2 \u0447\u0430\u0441\u0442\u0438<\/code> \u2014 \u043d\u0435\u0442 <em>\u0432\u0442\u043e\u0440\u043e\u0439<\/em> \u0447\u0430\u0441\u0442\u0438;<\/li>\n<li><code>\u0434\u043b\u0438\u043d\u043e\u0439 \u0434\u043e 2 \u043a\u043c<\/code> \u2014 \u0434\u043b\u0438\u043d\u043e\u0439 \u0434\u043e <em>\u0434\u0432\u0443\u0445<\/em> \u043a\u0438\u043b\u043e\u043c\u0435\u0442\u0440\u043e\u0432, \u043d\u043e <code>\u0435\u0434\u0435\u043c \u0434\u043e 2 \u043a\u043c<\/code> \u2014 \u0435\u0434\u0435\u043c \u0434\u043e <em>\u0432\u0442\u043e\u0440\u043e\u0433\u043e<\/em> \u043a\u0438\u043b\u043e\u043c\u0435\u0442\u0440\u0430;<\/li>\n<li><code>= 2\/5<\/code> \u2014 \u0440\u0430\u0432\u043d\u043e <em>\u0434\u0432\u0435 \u043f\u044f\u0442\u044b\u0445<\/em>, \u043d\u043e <code>\u0434. 2\/5<\/code> \u2014 \u0434\u043e\u043c <em>\u0434\u0432\u0430 \u0434\u0440\u043e\u0431\u044c \u043f\u044f\u0442\u044c<\/em> \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u2014 <em>\u0434\u0432\u0430 \u043f\u044f\u0442\u044c<\/em>.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041d\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u043e\u0439 \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0439: \u043e\u0434\u043d\u0430 \u0438 \u0442\u0430 \u0436\u0435 \u0430\u0431\u0431\u0440\u0435\u0432\u0438\u0430\u0442\u0443\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c\u0441\u044f \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430(<code>\u0433<\/code> \u2014 <em>\u0433\u043e\u0440\u043e\u0434<\/em> \u0438\u043b\u0438 <em>\u0433\u043e\u0434<\/em>) \u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430(<code>\u0411\u0426<\/code> \u2014 <em>\u0431 \u0446<\/em> \u0438\u043b\u0438 <em>\u0431\u0438\u0437\u043d\u0435\u0441 \u0446\u0435\u043d\u0442\u0440<\/em>?). \u0414\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0442\u0432\u043e\u0440\u0438\u0442\u0441\u044f \u0441 \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0446\u0438\u0435\u0439 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u043e\u0432, \u0432\u044b \u0443\u0436\u0435 \u0438 \u0441\u0430\u043c\u0438 \u0434\u043e\u0433\u0430\u0434\u0430\u043b\u0438\u0441\u044c. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043e\u0441\u0442\u0440\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441\u0442\u043e\u0438\u0442 \u0441 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u043d\u043e\u0439 \u0440\u0435\u0447\u0438.<\/p>\n<p>  <\/p>\n<h2 id=\"statisticheskaya-model\">\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c<\/h2>\n<p>  <\/p>\n<p>\u0412\u043e \u0432\u0441\u0435\u043c \u044d\u0442\u043e\u043c \u043c\u043d\u043e\u0433\u043e\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0438 \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c\u0441\u044f \u0438 \u0443\u0439\u0442\u0438 \u0432 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0441 \u043f\u043e\u0438\u0441\u043a\u043e\u043c \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0432\u0441\u0451 \u043d\u043e\u0432\u044b\u0445 \u0438 \u043d\u043e\u0432\u044b\u0445 \u043a\u0435\u0439\u0441\u043e\u0432. \u0412 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u043b\u0443\u0447\u0448\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u0438 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u041f\u0430\u0440\u0435\u0442\u043e. \u0412\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0440\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0432 \u043e\u0431\u0449\u0435\u043c \u0432\u0438\u0434\u0435, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c ~20% \u0441\u0430\u043c\u044b\u0445 \u0447\u0430\u0441\u0442\u043e\u0442\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432, \u043d\u043e \u043f\u043e\u043a\u0440\u044b\u0442\u044c ~80% \u044f\u0437\u044b\u043a\u0430.<\/p>\n<p>  <\/p>\n<p>\u0412 \u043f\u0435\u0440\u0432\u044b\u0445 \u0440\u0435\u043b\u0438\u0437\u0430\u0445 Open_STT \u043c\u044b \u043f\u043e\u0434\u043e\u0448\u043b\u0438 \u043a \u0440\u0435\u0448\u0435\u043d\u0438\u044e \u0435\u0449\u0451 \u0431\u0440\u0443\u0442\u0430\u043b\u044c\u043d\u0435\u0439: \u0432\u0438\u0434\u0438\u043c \u0447\u0438\u0441\u043b\u043e \u2014 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435. \u0421 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f STT \u0442\u0430\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0431\u044b\u043b\u043e \u0434\u0430\u0436\u0435 \u043e\u043f\u0440\u0430\u0432\u0434\u0430\u043d\u043d\u044b\u043c, \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 <code>2020 \u0433\u043e\u0434<\/code> \u043b\u0443\u0447\u0448\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0432 <em>\u0434\u0432\u0435 \u0442\u044b\u0441\u044f\u0447\u0438 \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044c \u0433\u043e\u0434<\/em> \u0438 \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0434\u043d\u043e\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0435, \u0447\u0435\u043c \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0446\u0435\u043b\u044b\u0445 \u0442\u0440\u0438 \u0441\u043b\u043e\u0432\u0430.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043c\u044b \u043f\u043e\u0434\u043a\u0440\u0443\u0442\u0438\u043b\u0438 \u0435\u0449\u0451 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043e\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c. \u0422\u0435\u043f\u0435\u0440\u044c \u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u0434 \u0441\u043b\u043e\u0432\u043e\u043c <code>\u0433\u043e\u0434<\/code> \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u043c\u0438 \u0438 <code>2020 \u0433\u043e\u0434<\/code> \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0432 <em>\u0434\u0432\u0435 \u0442\u044b\u0441\u044f\u0447\u0438 \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044b\u0439<\/em>. \u0422\u0430\u043a \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043d\u0430\u0448 &quot;\u0440\u0443\u0447\u043d\u043e\u0439&quot; \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u2014 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u0445 \u0432 \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u0430\u0432\u0438\u043b.<\/p>\n<p>  <\/p>\n<h2 id=\"sequence-to-sequence-modeli\">Sequence to Sequence \u043c\u043e\u0434\u0435\u043b\u0438<\/h2>\n<p>  <\/p>\n<p>\u0412 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u0442\u0430\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 sequence-to-sequence (seq2seq) \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u0434 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, seq2seq \u0443\u043c\u0435\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0451 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 &quot;\u0440\u0443\u0447\u043d\u043e\u0439&quot; \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d, \u0438 \u0434\u0430\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u043e\u0434\u043d\u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432 \u0434\u0440\u0443\u0433\u0443\u044e \u2014 \u0447\u0435\u043a;<\/li>\n<li>\u0423\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u2014 \u0447\u0435\u043a;<\/li>\n<li>\u0421\u0430\u043c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u2014 \u0447\u0435\u043a;<\/li>\n<\/ul>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pics.spark-in.me\/upload\/cfb0447e501cc8f5817d860074161c8d.png\" alt=\"Attention\"\/><\/p>\n<p>  <\/p>\n<blockquote><p>\u0413\u0440\u0430\u0444\u0438\u043a attention \u0432\u0435\u0441\u043e\u0432 \u0434\u043b\u044f \u0433\u043e\u0442\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 &quot;5 \u044f\u043d\u0432\u0430\u0440\u044f&quot;. \u041c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f &quot;\u043f\u044f\u0442\u041e\u0413\u041e&quot; \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e &quot;5&quot;, \u043d\u043e \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438\u0437 \u0441\u043b\u043e\u0432\u0430 &quot;\u044f\u043d\u0432\u0430\u0440\u044f&quot;.<\/p><\/blockquote>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0441\u043d\u043e\u0432\u044b \u043c\u044b \u0432\u0437\u044f\u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043c\u043e\u0434\u0435\u043b\u0438 seq2seq \u043d\u0430 PyTorch <a href=\"https:\/\/bastings.github.io\/annotated_encoder_decoder\/\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a>. \u041d\u0435 \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u2014 \u043b\u0443\u0447\u0448\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043f\u043e\u0441\u0442. \u041d\u0430 \u0432\u0445\u043e\u0434 \u043f\u043e\u0434\u0430\u0432\u0430\u043b\u0430\u0441\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438\u0437 \u0441\u043b\u043e\u0432\u0430\u0440\u044f \u0440\u0443\u0441\u0441\u043a\u0438\u0445 \u0431\u0443\u043a\u0432 + \u043b\u0430\u0442\u0438\u043d\u0438\u0446\u0430 + \u043f\u0443\u043d\u043a\u0442\u0443\u0430\u0446\u0438\u044f + \u0441\u043f\u0435\u0446 \u0442\u043e\u043a\u0435\u043d\u044b, \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0443\u0441\u0441\u043a\u0438\u0435 \u0431\u0443\u043a\u0432\u044b + \u043f\u0443\u043d\u043a\u0442\u0443\u0430\u0446\u0438\u044f.<\/p>\n<p>  <\/p>\n<p>\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u0444\u0430\u043a\u0442 \u2014 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u043d\u0430 \u0443\u0447\u0438\u043b\u0430\u0441\u044c. \u041d\u0430\u0439\u0442\u0438 \u0442\u0430\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0436\u0435 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u043d\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u0440\u0443\u0434\u0430 (\u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0433\u0443\u0433\u043b\u044f\u0442\u0441\u044f \u0434\u0430\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u043a\u043e\u0434\u043e\u043c) \u041d\u043e \u0432\u043e\u0442 \u0441 \u0440\u0443\u0441\u0441\u043a\u0438\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u043f\u043e\u0442\u0435\u0442\u044c.<\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a, \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0435\u0439 \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u043c\u044b \u0437\u0430\u043c\u0438\u043a\u0441\u043e\u0432\u0430\u043b\u0438:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u041d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u2014 <a href=\"https:\/\/www.kaggle.com\/c\/text-normalization-challenge-russian-language\/overview\">Russian Text Normalization<\/a>;<\/li>\n<li>\u041e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 <a href=\"https:\/\/spark-in.me\/post\/parsing-common-crawl-in-four-simple-commands\">\u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u043e\u0432<\/a>, \u043f\u0440\u043e\u0433\u043d\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0448 \u0440\u0443\u0447\u043d\u043e\u0439 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d.;<\/li>\n<li>\u041f\u0430\u0440\u043e\u0447\u043a\u0443 \u0430\u0443\u0433\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0435\u0442\u043a\u0443 \u0431\u043e\u043b\u0435\u0435 \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0439 \u043a \u0432\u044b\u0431\u0440\u043e\u0441\u0430\u043c \u2014 \u043f\u0443\u043d\u043a\u0442\u0443\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u0432 \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u044b\u0445 \u043c\u0435\u0441\u0442\u0430\u0445, \u043a\u0430\u043f\u0438\u0442\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f, \u0434\u043b\u0438\u043d\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0438 \u0442.\u0434.<\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"testim-torchscript\">\u0422\u0435\u0441\u0442\u0438\u043c TorchScript<\/h2>\n<p>  <\/p>\n<p>\u041d\u0430\u0448\u0435\u0439 \u0446\u0435\u043b\u044c\u044e \u0431\u044b\u043b\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438, \u043d\u043e \u0438 \u0442\u0435\u0441\u0442 \u0440\u0430\u0437\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0432\u0435\u0449\u0435\u0439, \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u0430\u043b Torchscript.<\/p>\n<p>  <\/p>\n<p>TorchScript \u2014 \u044d\u0442\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0438\u0437 PyTorch, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043a\u0430\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u0430\u043b\u0435\u043a\u043e \u0437\u0430 \u0440\u0430\u043c\u043a\u0438 Python \u0438 \u0434\u0430\u0436\u0435 \u0432\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432 C++. <\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043a\u043e\u0440\u043e\u0442\u043a\u043e, PyTorch \u0434\u0430\u0451\u0442 \u043d\u0430\u043c \u043d\u0430 \u0432\u044b\u0431\u043e\u0440 \u0434\u0432\u0430 \u043f\u0443\u0442\u0438:<\/p>\n<p>  <\/p>\n<ol>\n<li>\u0425\u0430\u0440\u0434\u043a\u043e\u0440\u043d\u044b\u0439, \u0441 \u043f\u043e\u043b\u043d\u044b\u043c \u043f\u043e\u0433\u0440\u0443\u0436\u0435\u043d\u0438\u0435\u043c \u0432 \u043f\u0443\u0447\u0438\u043d\u0443 TorchScript \u044f\u0437\u044b\u043a\u0430, \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0432\u044b\u0442\u0435\u043a\u0430\u044e\u0449\u0438\u043c\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u044f\u043c\u0438; <\/li>\n<li>\u0413\u043e\u0442\u043e\u0432\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 <code>torch.jit.script<\/code> (\u0438 <code>torch.jit.trace<\/code>), \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438. <\/li>\n<\/ol>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0434\u043b\u044f \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439, \u0447\u0435\u043c \u0442\u0435, \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0432 <a href=\"https:\/\/pytorch.org\/tutorials\/beginner\/Intro_to_TorchScript_tutorial.html\">\u0433\u0430\u0439\u0434\u0435<\/a>, \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0430\u0440\u0443 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430. \u041e\u0434\u043d\u0430\u043a\u043e, \u0442\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u043c\u0430\u043b\u043e\u0439 \u043a\u0440\u043e\u0432\u044c\u044e: \u043f\u043e\u0434\u0443\u043c\u0430\u0442\u044c \u043e \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438, \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0442.\u0434. \u0411\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439 \u0432 <a href=\"https:\/\/t.me\/snakers4\/2418\">\u043f\u043e\u0441\u0442\u0435 \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0435<\/a>.<\/p>\n<p>  <\/p>\n<h2 id=\"primery-raboty\">\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u044b<\/h2>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0438\u0442\u043e\u0433, \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430. \u0412\u0441\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u0437\u044f\u0442\u044b \u0438\u0437 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u0440\u043f\u0443\u0441\u0430, \u0442\u043e \u0435\u0441\u0442\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043a\u0438 \u043c\u043e\u0434\u0435\u043b\u044c \u0441 \u043d\u0438\u043c\u0438 \u043d\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u0430\u0441\u044c.<\/p>\n<p>  <\/p>\n<ul>\n<li><code>norm.norm_string(&quot;\u0412\u0442\u043e\u0440\u0430\u044f \u043f\u043e \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0433\u0440\u0443\u043f\u043f\u0430 \u2014 \u0444\u0430\u0440\u0441\u0438\u0432\u0430\u043d\u044b \u2014 \u043e\u0442 27 \u0434\u043e 38 %.&quot;)<\/code><\/li>\n<\/ul>\n<p>  <\/p>\n<p><em>&#8216;\u0412\u0442\u043e\u0440\u0430\u044f \u043f\u043e \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0433\u0440\u0443\u043f\u043f\u0430 \u2014 \u0444\u0430\u0440\u0441\u0438\u0432\u0430\u043d\u044b \u2014 \u043e\u0442 \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u0438 \u0441\u0435\u043c\u0438 \u0434\u043e \u0442\u0440\u0438\u0434\u0446\u0430\u0442\u0438 \u0432\u043e\u0441\u044c\u043c\u0438 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432.&#8217;<\/em><\/p>\n<p>  <\/p>\n<ul>\n<li><code>norm.norm_string(&quot;\u0412\u0438\u0441\u0435\u043d\u0442\u0435 \u041a\u0430\u043d\u044c\u044f\u0441 \u0440\u043e\u0434\u0438\u043b\u0441\u044f 22 \u043e\u043a\u0442\u044f\u0431\u0440\u044f 1939 \u0433\u043e\u0434\u0430&quot;)<\/code><\/li>\n<\/ul>\n<p>  <\/p>\n<p><em>&#8216;\u0412\u0438\u0441\u0435\u043d\u0442\u0435 \u041a\u0430\u043d\u044c\u044f\u0441 \u0440\u043e\u0434\u0438\u043b\u0441\u044f \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u043a\u0442\u044f\u0431\u0440\u044f \u0442\u044b\u0441\u044f\u0447\u0430 \u0434\u0435\u0432\u044f\u0442\u044c\u0441\u043e\u0442 \u0442\u0440\u0438\u0434\u0446\u0430\u0442\u044c \u0434\u0435\u0432\u044f\u0442\u043e\u0433\u043e \u0433\u043e\u0434\u0430&#8217;<\/em><\/p>\n<p>  <\/p>\n<ul>\n<li><code>norm.norm_string(&quot;\u0438\u0433\u0440\u0430\u0435\u0442 \u043f\u0435\u0441\u043d\u044f \u00abThe Crying Game\u00bb&quot;)<\/code><\/li>\n<\/ul>\n<p>  <\/p>\n<p><em>&#8216;\u0438\u0433\u0440\u0430\u0435\u0442 \u043f\u0435\u0441\u043d\u044f \u00ab\u0437\u044d \u043a\u0440\u0430\u0438\u043d\u0433 \u0433\u0435\u0439\u043c\u00bb&#8217;<\/em><\/p>\n<p>  <\/p>\n<ul>\n<li><code>norm.norm_string(&quot;\u043a \u043d\u0430\u0447\u0430\u043b\u0443 XVIII \u0432\u0435\u043a\u0430&quot;)<\/code><\/li>\n<\/ul>\n<p>  <\/p>\n<p><em>&#8216;\u043a \u043d\u0430\u0447\u0430\u043b\u0443 \u0432\u043e\u0441\u0435\u043c\u043d\u0430\u0434\u0446\u0430\u0442\u043e\u0433\u043e \u0432\u0435\u043a\u0430&#8217;<\/em><\/p>\n<p>  <\/p>\n<ul>\n<li><code>norm.norm_string(&quot;\u0438 \u0432 2012 \u0433\u043e\u0434\u0443 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0430 6,6 \u0448\u0435\u043a\u0435\u043b\u044f&quot;)<\/code><\/li>\n<\/ul>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/491260\/\"> https:\/\/habr.com\/ru\/post\/491260\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/491260\/\">\n<p>\u041f\u0440\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435\u043c (Speech-To-Text) \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439 (Text-To-Speech) \u0440\u0435\u0447\u0438 \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043d\u0451\u0441 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0438\u0439 \u2014 \u0442\u043e \u0435\u0441\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u043e <strong>\u0443\u0441\u0442\u043d\u043e\u0439<\/strong> \u0440\u0435\u0447\u0438. \u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c <strong>\u043f\u0438\u0441\u044c\u043c\u0435\u043d\u043d\u0430\u044f<\/strong> \u0440\u0435\u0447\u044c \u0441\u0442\u0430\u043d\u0435\u0442 \u043d\u0430\u0448\u0438\u043c \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c, \u0435\u0451 \u043d\u0443\u0436\u043d\u043e <strong>\u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c<\/strong>.<\/p>\n<p>  <\/p>\n<p>\u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0442\u0435\u043a\u0441\u0442 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0430\u043f\u043e\u0432:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0417\u0430\u043c\u0435\u043d\u0430 \u0447\u0438\u0441\u043b\u0430 \u043f\u0440\u043e\u043f\u0438\u0441\u044c\u044e: <code>1984 \u0433\u043e\u0434<\/code> -&gt; <em>\u0442\u044b\u0441\u044f\u0447\u0430 \u0434\u0435\u0432\u044f\u0442\u044c\u0441\u043e\u0442 \u0432\u043e\u0441\u0435\u043c\u044c\u0434\u0435\u0441\u044f\u0442 \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u044b\u0439 \u0433\u043e\u0434<\/em>;<\/li>\n<li>\u0420\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0430 \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0439: <code>2 \u043c\u0438\u043d. \u043d\u0435\u043d\u0430\u0432\u0438\u0441\u0442\u0438<\/code> -&gt; <em>\u0434\u0432\u0435 \u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0435\u043d\u0430\u0432\u0438\u0441\u0442\u0438<\/em>; <\/li>\n<li>\u0422\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0446\u0438\u044f \u043b\u0430\u0442\u0438\u043d\u0438\u0446\u044b: <code>Orwell<\/code> -&gt; <code>\u041e\u0440\u0443\u044d\u043b\u043b<\/code> \u0438 \u0442.\u0434.<\/li>\n<\/ul>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pics.spark-in.me\/upload\/7c12fea58ff515ffb46df52b6050ace0.jpg\" alt=\"Normalization\"\/><\/p>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043a\u043e\u0440\u043e\u0442\u043a\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u043b\u0430\u0441\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0435 \u0440\u0443\u0441\u0441\u043a\u043e\u0439 \u0440\u0435\u0447\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/474462\/\">Open_STT<\/a>, \u043a\u0430\u043a\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0438 \u043e \u043d\u0430\u0448\u0435\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0435 \u043a \u0437\u0430\u0434\u0430\u0447\u0435. <\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0448\u0435\u043d\u043a\u0430 \u043d\u0430 \u0442\u043e\u0440\u0442\u0435, \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0430\u0448 \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u0437\u0435 seq2seq \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f: <a href=\"https:\/\/github.com\/snakers4\/russian_stt_text_normalization\">\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 github<\/a>. \u041e\u043d \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442 \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">norm = Normalizer() result = norm.norm_text('\u0421 9 \u0434\u043e 11 \u043a\u043e\u0442\u0438\u043a\u0438 \u043a\u0443\u0448\u0430\u043b\u0438 whiskas')<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">&gt;&gt;&gt; '\u0421 \u0434\u0435\u0432\u044f\u0442\u0438 \u0434\u043e \u043e\u0434\u0438\u043d\u043d\u0430\u0434\u0446\u0430\u0442\u0438 \u043a\u043e\u0442\u0438\u043a\u0438 \u043a\u0443\u0448\u0430\u043b\u0438 \u0443\u0438\u0441\u043a\u0430\u0441'<\/code><\/pre>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-299738","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/299738","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=299738"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/299738\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=299738"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=299738"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=299738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}