{"id":324237,"date":"2021-06-02T21:00:47","date_gmt":"2021-06-02T21:00:47","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=324237"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=324237","title":{"rendered":"\u0421\u0430\u043c \u0441\u0435\u0431\u0435 \u0413\u0443\u0442\u0435\u043d\u0431\u0435\u0440\u0433. \u0414\u0435\u043b\u0430\u0435\u043c \u043c\u043d\u043e\u0433\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043d\u0438\u0433\u0438"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/4y\/hh\/dn\/4yhhdnebispmireg2piqoiwn2n4.png\" alt=\"Lingtrain parallel books article cover\"><\/p>\n<p>  <\/p>\n<p>\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437 \u043c\u044b \u0441 \u0432\u0430\u043c\u0438 \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043d\u0438\u0433\u0438 \u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0440\u0443\u0441\u0441\u043a\u043e-\u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u0442\u0440\u044b\u0432\u043a\u0430 \u0440\u043e\u043c\u0430\u043d\u0430 \u0425\u0430\u0440\u043f\u0435\u0440 \u041b\u0438 &quot;\u0423\u0431\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u043c\u0435\u0448\u043d\u0438\u043a\u0430&quot;. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e \u043c\u043d\u043e\u0433\u043e\u044f\u0437\u044b\u0447\u043d\u0443\u044e \u043a\u043d\u0438\u0433\u0443 \u043d\u0430 \u0432\u043e\u0441\u044c\u043c\u0438 \u044f\u0437\u044b\u043a\u0430\u0445.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u043f\u043e\u043c\u043d\u044e, \u0447\u0442\u043e \u0446\u0435\u043b\u044c\u044e \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043b\u044e\u0434\u044f\u043c, \u0438\u0437\u0443\u0447\u0430\u044e\u0449\u0438\u043c \u0438 \u043f\u0440\u0435\u043f\u043e\u0434\u0430\u044e\u0449\u0438\u043c \u0438\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0435 \u044f\u0437\u044b\u043a\u0438, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0443\u0447\u0435\u0431\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043d\u0438\u0433\u0438 \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043d\u0430\u0432\u044b\u043a\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f. \u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0442\u0440\u0443\u0434\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u0434\u043b\u044f \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0441 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c, \u0442\u043e\u0433\u0434\u0430 \u043a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u043a\u043d\u0438\u0433\u0443 \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435 \u0438 \u0435\u0435 \u0440\u0443\u0441\u0441\u043a\u0443\u044e \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u044e \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435. <\/p>\n<p>  <\/p>\n<h2 id=\"snachala-sdelaem-sem-knig\">\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0441\u0435\u043c\u044c \u043a\u043d\u0438\u0433<\/h2>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0434\u0435\u043b\u0430\u0435\u043c \u0432\u0441\u0435 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0440\u043e\u043c\u0430\u043d\u0430 \u0411\u0443\u043b\u0433\u0430\u043a\u043e\u0432\u0430 &quot;\u041c\u0430\u0441\u0442\u0435\u0440 \u0438 \u041c\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430&quot;, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u0435\u043d \u0432 \u043c\u0438\u0440\u0435 \u0438 \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d \u043d\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u044f\u0437\u044b\u043a\u043e\u0432. \u042f \u043d\u0430\u0448\u0435\u043b \u0435\u0433\u043e \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u0438 \u043d\u0435\u043c\u0435\u0446\u043a\u043e\u043c (\u0433\u0435\u0440\u043c\u0430\u043d\u0441\u043a\u0438\u0435 \u044f\u0437\u044b\u043a\u0438); \u0431\u0435\u043b\u043e\u0440\u0443\u0441\u0441\u043a\u043e\u043c, \u0447\u0435\u0448\u0441\u043a\u043e\u043c \u0438 \u0443\u043a\u0440\u0430\u0438\u043d\u0441\u043a\u043e\u043c (\u0441\u043b\u0430\u0432\u044f\u043d\u0441\u043a\u0438\u0435 \u044f\u0437\u044b\u043a\u0438); \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430 \u0432\u0435\u043d\u0433\u0435\u0440\u0441\u043a\u043e\u043c \u0438 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0430\u0445. \u0412\u0441\u0435 \u0441\u0435\u043c\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u043c\u044b \u0432\u044b\u0440\u043e\u0432\u043d\u044f\u0435\u043c \u0441 \u0440\u0443\u0441\u0441\u043a\u0438\u043c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u043e\u043c, \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u0435\u043c\u044c \u043a\u043d\u0438\u0433. \u0417\u0430\u0442\u0435\u043c \u0432\u044b\u0440\u043e\u0432\u043d\u044f\u0435\u043c \u0438\u0445 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u044f\u0437\u044b\u043a\u043e\u0432 \u0434\u043b\u044f \u0441\u0432\u043e\u0435\u0439 \u043a\u043d\u0438\u0433\u0438 \u0432 \u043b\u044e\u0431\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u041f\u043e\u043b\u043d\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a\u043d\u0438\u0433 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 pdf \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u043f\u0430\u0440\u044b \u0432\u0435\u043d\u0433\u0435\u0440\u0441\u043a\u0438\u0439-\u0440\u0443\u0441\u0441\u043a\u0438\u0439.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/y5\/xy\/bt\/y5xybt9te5rgnjsudl5tdiugsts.png\" alt=\"hungarian\"><\/p>\n<p>  <\/p>\n<h2 id=\"shag-1-podgotovka-tekstov\">\u0428\u0430\u0433 1. \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0442\u0435\u043a\u0441\u0442\u043e\u0432<\/h2>\n<p>  <\/p>\n<p>\u041a\u0440\u0430\u0442\u043a\u043e \u043d\u0430\u043f\u043e\u043c\u043d\u044e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u0432 (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u043d\u0438\u0436\u0435). <\/p>\n<p>  <\/p>\n<h3 id=\"pravila\">\u041f\u0440\u0430\u0432\u0438\u043b\u0430<\/h3>\n<p>  <\/p>\n<ol>\n<li>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u0432\u0435\u0434\u043e\u043c\u043e \u043b\u0438\u0448\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 (\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u0438\u0437\u0434\u0430\u0442\u0435\u043b\u0435, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u0438\u0435, \u043d\u043e\u043c\u0435\u0440\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f).<\/li>\n<li>\u041f\u0440\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043c\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0430 \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f.<\/li>\n<li>\u041f\u0440\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043c\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 (H1 \u0441\u0430\u043c\u044b\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0439, H5 \u0441\u0430\u043c\u044b\u0439 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439), \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0432 \u0442\u0435\u043a\u0441\u0442\u0430\u0445 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c.<\/li>\n<li>\u0423\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u043d\u0435\u0442 \u0441\u0442\u0440\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043e\u043d\u0447\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u0447\u043a\u043e\u0439 \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u043e\u043d\u0446\u043e\u043c \u0430\u0431\u0437\u0430\u0446\u0430 (\u0438\u043d\u0430\u0447\u0435 \u0446\u0435\u043b\u044b\u0439 \u0430\u0431\u0437\u0430\u0446 \u0440\u0430\u0437\u043e\u0431\u044c\u0435\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u043d\u0430 \u0434\u0432\u0430).<\/li>\n<\/ol>\n<p>  <\/p>\n<p>\u0427\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u043b\u044e\u0441\u0442\u0438 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043a\u043d\u0438\u0433\u0438 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043a\u0430\u043a\u043e\u0433\u043e \u0438\u0437 \u043d\u0438\u0445 \u0431\u0440\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u0438 \u043d\u0430 \u0430\u0431\u0437\u0430\u0446\u044b. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0440\u0443\u0441\u0441\u043a\u0438\u0439, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u043a\u0441\u0442\u044b \u043a \u043d\u0435\u043c\u0443. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0434\u043b\u044f \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u043c\u043d\u043e\u0439 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0443\u0436\u0435 \u0441\u043e\u0431\u043b\u044e\u0434\u0435\u043d\u043e.<\/p>\n<p>  <\/p>\n<h3 id=\"metki\">\u041c\u0435\u0442\u043a\u0438<\/h3>\n<p>  <\/p>\n<p>\u042f\u0437\u044b\u043a \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u043d\u0430\u0431\u043e\u0440 \u043c\u0435\u0442\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u0430\u0432\u044f\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0446\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/p>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>\u041c\u0435\u0442\u043a\u0430<\/th>\n<th>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/th>\n<th>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>%%%%%title.<\/td>\n<td>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f<\/td>\n<td>\u0412\u0440\u0443\u0447\u043d\u0443\u044e<\/td>\n<\/tr>\n<tr>\n<td>%%%%%author.<\/td>\n<td>\u0410\u0432\u0442\u043e\u0440<\/td>\n<td>\u0412\u0440\u0443\u0447\u043d\u0443\u044e<\/td>\n<\/tr>\n<tr>\n<td>%%%%%h1. %%%%%h2. %%%%%h3. %%%%%h4. %%%%%h5.<\/td>\n<td>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438<\/td>\n<td>\u0412\u0440\u0443\u0447\u043d\u0443\u044e<\/td>\n<\/tr>\n<tr>\n<td>%%%%%divider.<\/td>\n<td>\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c<\/td>\n<td>\u0412\u0440\u0443\u0447\u043d\u0443\u044e<\/td>\n<\/tr>\n<tr>\n<td>%%%%%.<\/td>\n<td>\u041d\u043e\u0432\u044b\u0439 \u0430\u0431\u0437\u0430\u0446<\/td>\n<td>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043c\u0435\u0442\u043a\u0430\u043c \u043c\u044b \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043c \u0438\u0437 \u0441\u044b\u0440\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f, \u0435\u0433\u043e \u0430\u0432\u0442\u043e\u0440\u0435, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u0438 <em>\u043c\u0435\u0441\u0442\u043e\u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438<\/em> \u0433\u043b\u0430\u0432. \u042d\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0430\u043c \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043a\u043d\u0438\u0433\u0438.<\/p>\n<p>  <\/p>\n<h3 id=\"tekst\">\u0422\u0435\u043a\u0441\u0442<\/h3>\n<p>  <\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0442\u0435\u043a\u0441\u0442\u044b, \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">\u041c\u0430\u0441\u0442\u0435\u0440 \u0438 \u041c\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430%%%%%title. \u041c.\u0410. \u0411\u0443\u043b\u0433\u0430\u043a\u043e\u0432%%%%%author.  \u0427\u0410\u0421\u0422\u042c \u041f\u0415\u0420\u0412\u0410\u042f%%%%%h1.  \u0413\u043b\u0430\u0432\u0430 1%%%%%h2.  \u041d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0440\u0430\u0437\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0439\u0442\u0435 \u0441 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c\u0438%%%%%h2.  \u041e\u0434\u043d\u0430\u0436\u0434\u044b \u0432\u0435\u0441\u043d\u043e\u044e, \u0432 \u0447\u0430\u0441 \u043d\u0435\u0431\u044b\u0432\u0430\u043b\u043e \u0436\u0430\u0440\u043a\u043e\u0433\u043e \u0437\u0430\u043a\u0430\u0442\u0430, \u0432 \u041c\u043e\u0441\u043a\u0432\u0435, \u043d\u0430 \u041f\u0430\u0442\u0440\u0438\u0430\u0440\u0448\u0438\u0445 \u043f\u0440\u0443\u0434\u0430\u0445, \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0434\u0432\u0430 \u0433\u0440\u0430\u0436\u0434\u0430\u043d\u0438\u043d\u0430. \u041f\u0435\u0440\u0432\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445, \u043e\u0434\u0435\u0442\u044b\u0439 \u0432 \u043b\u0435\u0442\u043d\u044e\u044e \u0441\u0435\u0440\u0435\u043d\u044c\u043a\u0443\u044e \u043f\u0430\u0440\u0443, \u0431\u044b\u043b \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u0440\u043e\u0441\u0442\u0430, \u0443\u043f\u0438\u0442\u0430\u043d, \u043b\u044b\u0441, \u0441\u0432\u043e\u044e \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u0443\u044e \u0448\u043b\u044f\u043f\u0443 \u043f\u0438\u0440\u043e\u0436\u043a\u043e\u043c \u043d\u0435\u0441 \u0432 \u0440\u0443\u043a\u0435, \u0430 \u043d\u0430 \u0445\u043e\u0440\u043e\u0448\u043e \u0432\u044b\u0431\u0440\u0438\u0442\u043e\u043c \u043b\u0438\u0446\u0435 \u0435\u0433\u043e \u043f\u043e\u043c\u0435\u0449\u0430\u043b\u0438\u0441\u044c \u0441\u0432\u0435\u0440\u0445\u044a\u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 \u043e\u0447\u043a\u0438 \u0432 \u0447\u0435\u0440\u043d\u043e\u0439 \u0440\u043e\u0433\u043e\u0432\u043e\u0439 \u043e\u043f\u0440\u0430\u0432\u0435. \u0412\u0442\u043e\u0440\u043e\u0439 \u2013 \u043f\u043b\u0435\u0447\u0438\u0441\u0442\u044b\u0439, \u0440\u044b\u0436\u0435\u0432\u0430\u0442\u044b\u0439, \u0432\u0438\u0445\u0440\u0430\u0441\u0442\u044b\u0439 \u043c\u043e\u043b\u043e\u0434\u043e\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0432 \u0437\u0430\u043b\u043e\u043c\u043b\u0435\u043d\u043d\u043e\u0439 \u043d\u0430 \u0437\u0430\u0442\u044b\u043b\u043e\u043a \u043a\u043b\u0435\u0442\u0447\u0430\u0442\u043e\u0439 \u043a\u0435\u043f\u043a\u0435 \u2013 \u0431\u044b\u043b \u0432 \u043a\u043e\u0432\u0431\u043e\u0439\u043a\u0435, \u0436\u0435\u0432\u0430\u043d\u044b\u0445 \u0431\u0435\u043b\u044b\u0445 \u0431\u0440\u044e\u043a\u0430\u0445 \u0438 \u0432 \u0447\u0435\u0440\u043d\u044b\u0445 \u0442\u0430\u043f\u043e\u0447\u043a\u0430\u0445.     ...<\/code><\/pre>\n<p>  <\/p>\n<hr>\n<p>  <\/p>\n<pre><code class=\"plaintext\">MIHAIL BULGAKOV%%%%%author.  A MESTER \u00c9S MARGARITA%%%%%title.  ELS\u0150 K\u00d6NYV%%%%%h1.  ELS\u0150 FEJEZET%%%%%h2.  Ne \u00e1lljunk sz\u00f3ba ismeretlenekkel%%%%%h2.  Egy meleg tavaszi est\u00e9n, az alkonyat \u00f3r\u00e1j\u00e1ban, a Patriarsije Prudin k\u00e9t f\u00e9rfi\u00fa jelent meg. Az egyik negyven\u00e9ves forma, k\u00f6v\u00e9rk\u00e9s, alacsony, kopasz fekete emberke, sz\u00fcrke ny\u00e1ri \u00f6lt\u00f6nyt viselt, eleg\u00e1ns kalapj\u00e1t kez\u00e9ben tartotta, gondosan borotv\u00e1lt arc\u00e1t istentelen nagy m\u00e9ret\u0171, fekete csontkeretes p\u00e1paszem \u00e9kes\u00edtette. T\u00e1rsa j\u00f3val fiatalabb s v\u00e1llasabb volt n\u00e1la, borzas haj\u00e1n tark\u00f3j\u00e1ig h\u00e1tratolt kock\u00e1s sapka; \u00f6lt\u00f6z\u00e9ke kock\u00e1s sportingb\u0151l, gy\u0171r\u00f6tt feh\u00e9r nadr\u00e1gb\u00f3l, fekete szand\u00e1lb\u00f3l \u00e1llt.  ...<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043c\u0435\u0442\u043e\u043a \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432. \u0418\u043d\u0430\u0447\u0435 \u0433\u0434\u0435-\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043d\u043e\u043c\u0435\u0440 \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0433\u043b\u0430\u0432\u044b, \u0430 \u0433\u0434\u0435-\u0442\u043e \u043d\u0435\u0442. \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043c\u044b \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438 \u0442\u0435\u043a\u0441\u0442\u044b, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044e.<\/p>\n<p>  <\/p>\n<h2 id=\"shag-2-vyravnivanie\">\u0428\u0430\u0433 2. \u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435<\/h2>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0438 \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437, \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 <strong>lingtrain-aligner<\/strong>. \u041a\u043e\u0434 \u043e\u0442\u043a\u0440\u044b\u0442, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u044e \u0432 <a href=\"https:\/\/github.com\/averkij\/lingtrain-aligner\" rel=\"nofollow noopener noreferrer\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439<\/a>.<\/p>\n<p>  <\/p>\n<h3 id=\"poprobovat-v-colab\">\u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0432 Colab<\/h3>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0438 \u0442\u0435\u043a\u0441\u0442\u044b \u0431\u0435\u0437 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0432\u043e\u0442 \u044d\u0442\u043e\u0442 <a href=\"https:\/\/colab.research.google.com\/drive\/1r8vHKn_2vreu8AWTzOgk1CbWrDnWmdyC?usp=sharing\" rel=\"nofollow noopener noreferrer\">Colab \u0431\u043b\u043e\u043a\u043d\u043e\u0442<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437. \u0412 \u043d\u0435\u043c \u0435\u0441\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0443. \u0412 \u043a\u043e\u043d\u0446\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0443\u044e\u0441\u044f \u0434\u0432\u0443\u044f\u0437\u044b\u0447\u043d\u0443\u044e \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u0443\u044e \u043a\u043d\u0438\u0433\u0443 \u043a\u0430\u043a html \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443.<\/p>\n<p>  <\/p>\n<h3 id=\"poprobovat-lokalno\">\u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e<\/h3>\n<p>  <\/p>\n<pre><code class=\"plaintext\">pip install lingtrain-aligner<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\"># \u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 from lingtrain_aligner import preprocessor, splitter, aligner, resolver, reader, vis_helper  # \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0442\u0435\u043a\u0441\u0442\u044b \u0434\u043b\u044f \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f text1_input = &quot;master_hu.txt&quot; text2_input = &quot;master_ru.txt&quot;  with open(text1_input, &quot;r&quot;, encoding=&quot;utf8&quot;) as input1: text1 = input1.readlines() with open(text2_input, &quot;r&quot;, encoding=&quot;utf8&quot;) as input2: text2 = input2.readlines()  # \u041f\u0443\u0442\u044c \u0434\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0438 db_path = &quot;master_hu.db&quot;  # \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u044f\u0437\u044b\u043a\u0438 (\u0432\u0430\u0436\u043d\u043e \u0434\u043b\u044f \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u044f \u043d\u0430 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f) lang_from = &quot;hu&quot; lang_to = &quot;ru&quot;  # \u0412\u044b\u0431\u0435\u0440\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c models = [&quot;sentence_transformer_multilingual&quot;, &quot;sentence_transformer_multilingual_labse&quot;] model_name = models[0]  # \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043c\u0435\u0442\u043a\u0438 \u0430\u0431\u0437\u0430\u0446\u0435\u0432 text1_prepared = preprocessor.mark_paragraphs(lines1_prepared) text2_prepared = preprocessor.mark_paragraphs(lines2_prepared)  # \u0420\u0430\u0437\u043e\u0431\u044c\u0435\u043c \u0442\u0435\u043a\u0441\u0442\u044b \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 splitted_from = splitter.split_by_sentences_wrapper(lines1_prepared, lang_from, leave_marks=True) splitted_to = splitter.split_by_sentences_wrapper(lines2_prepared, lang_to, leave_marks=True)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u0442\u043e\u0433\u043e \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c <strong>9460<\/strong> \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u0432\u0435\u043d\u0433\u0435\u0440\u0441\u043a\u043e\u043c \u0438 <strong>8996<\/strong> \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c. \u0418\u0445-\u0442\u043e \u043c\u044b \u0438 \u0445\u043e\u0442\u0438\u043c \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0443 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u043b\u043e\u0441\u044c.<\/p>\n<p>  <\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f. \u042d\u0442\u043e SQLite \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u043c \u0432\u0445\u043e\u0434\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">aligner.fill_db(db_path, lang_from, lang_to, splitted_from, splitted_to)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0432\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u0442\u044b\u0441\u044f\u0447\u0443 \u0441\u0442\u0440\u043e\u043a, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">batch_ids = range(10)  aligner.align_db(db_path,                  model_name,                  batch_size=100,                  window=60,                  batch_ids=batch_ids,                  save_pic=False,                 embed_batch_size=25,                  normalize_embeddings=True,                  show_progress_bar=True                 )<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u2014 \u043c\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f (\u0434\u0435\u0442\u0430\u043b\u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435), \u0434\u043b\u044f 10 \u043e\u0442\u0440\u0435\u0437\u043a\u043e\u0432 (<em>batch_ids<\/em> \u2014 \u0438\u0445 \u043d\u043e\u043c\u0435\u0440\u0430) \u043f\u043e 100 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <em>batch_size<\/em>). \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <em>window<\/em> \u0437\u0430\u0434\u0430\u0435\u0442 &quot;\u043f\u0435\u0440\u0435\u0445\u043b\u0435\u0441\u0442&quot; \u043c\u0435\u0436\u0434\u0443 \u044d\u0442\u0438\u043c\u0438 \u043a\u0443\u0441\u043a\u0430\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0437\u0430\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u0446\u0435\u043b\u0435\u0432\u044b\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u0430 \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0438 \u0432\u0441\u0435\u0439 \u043a\u043d\u0438\u0433\u0438 \u043d\u0430\u0448\u0430 &quot;\u043e\u0441\u044c \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f&quot; \u043c\u043e\u0436\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u043a\u043b\u043e\u043d\u044f\u0442\u044c\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u0430 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u044f\u0437\u044b\u043a\u043e\u0432 <em>\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435<\/em> \u0442\u0430\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u0434\u043e\u0439\u0434\u0443\u0442 \u0434\u043b\u044f \u0432\u0441\u0435\u0439 \u043a\u043d\u0438\u0433\u0438. \u0414\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0436\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u0438 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043b\u0438\u0431\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043e\u043a\u043d\u043e \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u043c (\u044d\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043a \u0431\u043e\u043b\u044c\u0448\u0435\u043c\u0443 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435), \u043b\u0438\u0431\u043e \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <em>shift<\/em> (\u043e \u043d\u0435\u043c \u043d\u0438\u0436\u0435).<\/p>\n<p>  <\/p>\n<h3 id=\"vizualizaciya\">\u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h3>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043c\u043e\u0434\u0443\u043b\u044f <strong>vis_helper<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">vis_helper.visualize_alignment_by_db(db_path,             output_path=&quot;alignment_vis.png&quot;,             batch_size=100,             size=(800,800),             lang_name_from=lang_from,             lang_name_to=lang_to,             batch_ids=batch_ids,             plt_show=True)<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/uv\/zm\/qc\/uvzmqcphlzvkyytk2czyeuh2wy8.png\" alt=\"Lingtrain parallel books\"><\/p>\n<p>  <\/p>\n<p>\u0412 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <em>batch_ids<\/em> \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u0442\u0435 \u0436\u0435 \u043d\u043e\u043c\u0435\u0440\u0430 \u0431\u0430\u0442\u0447\u0435\u0439, \u0447\u0442\u043e \u0438 \u043f\u0440\u0438 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0438. \u0415\u0441\u043b\u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>  <\/p>\n<p>\u041c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u0437\u0434\u0435\u0441\u044c, \u0447\u0442\u043e\u0431\u044b &quot;\u043e\u0441\u044c \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f&quot; \u043d\u0435 \u0432\u044b\u0448\u043b\u0430 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u043e\u043a\u043d\u0430, \u0438\u043d\u0430\u0447\u0435 \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 \u043e\u0442\u0440\u0435\u0437\u043e\u043a \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u043c\u0435\u0441\u0442\u043e \u0432\u044b\u0431\u0440\u043e\u0441\u044b.<\/p>\n<p>  <\/p>\n<h3 id=\"razreshenie-konfliktov\">\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432<\/h3>\n<p>  <\/p>\n<p>\u041c\u0435\u0445\u0430\u043d\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 <strong>resolver<\/strong>. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u043d\u0435\u043c, \u043e\u043f\u044f\u0442\u044c \u0436\u0435, \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435. \u0421\u043a\u0430\u0436\u0443 \u043b\u0438\u0448\u044c, \u0447\u0442\u043e \u043e\u043d \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0438 \u043c\u0435\u0436\u0434\u0443 \u0443\u0434\u0430\u0447\u043d\u044b\u043c\u0438 \u043e\u0442\u0440\u0435\u0437\u043a\u0430\u043c\u0438 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f, \u0438 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u043e\u0432 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0434\u043b\u0438\u043d\u0443 \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0434\u043b\u0438\u043d\u0443 \u0434\u043b\u044f \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0430. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u0445\u043e\u0440\u043e\u0448\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u2014 \u0442\u0440\u0438\u0436\u0434\u044b \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044e \u0441 \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u044b\u043c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">steps = 3 batch_id = -1 #\u043f\u0440\u043e\u0439\u0442\u0438 \u043f\u043e \u0432\u0441\u0435\u043c \u0431\u0430\u0442\u0447\u0430\u043c  for i in range(steps):      # \u041d\u0430\u0439\u0442\u0438 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u044b     conflicts, rest = resolver.get_all_conflicts(db_path, min_chain_length=2+i, max_conflicts_len=6*(i+1), batch_id=batch_id)      # \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u044b \u043d\u0430\u0439\u0434\u0435\u043d\u044b     resolver.get_statistics(conflicts)     resolver.get_statistics(rest)      # \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u044b     resolver.resolve_all_conflicts(db_path, conflicts, model_name, show_logs=False)      if len(rest) == 0:         break<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u043a\u043e\u043d\u0446\u0435 \u043c\u043e\u0433\u0443\u0442 \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u0435\u0434\u0438\u043d\u0438\u0447\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u044b. \u0415\u0441\u043b\u0438 \u0442\u0430\u043a\u0438\u0435 \u0435\u0441\u0442\u044c, \u0442\u043e \u0434\u043e\u0431\u0438\u0432\u0430\u0435\u043c \u0438\u0445:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\"># \u041d\u0430\u0439\u0442\u0438 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u044b conflicts, rest = resolver.get_all_conflicts(db_path, min_chain_length=2, max_conflicts_len=20, batch_id=-1)  # \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u044b \u043d\u0430\u0439\u0434\u0435\u043d\u044b resolver.get_statistics(conflicts) resolver.get_statistics(rest)  # \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u044b resolver.resolve_all_conflicts(db_path, conflicts, model_name, show_logs=False)  # \u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 vis_helper.visualize_alignment_by_db(db_path,             output_path=&quot;alignment_vis.png&quot;,             batch_size=100,             size=(800,800),             lang_name_from=lang_from,             lang_name_to=lang_to,             batch_ids=batch_ids,             plt_show=False)<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/-z\/ah\/0x\/-zah0xadcjyiaz1gvafu_5txkb0.png\" alt=\"Lingtrain parallel books\"><\/p>\n<p>  <\/p>\n<h3 id=\"cikl\">\u0426\u0438\u043a\u043b<\/h3>\n<p>  <\/p>\n<p>\u041c\u044b \u0432\u044b\u0440\u043e\u0432\u043d\u044f\u043b\u0438 \u0447\u0430\u0441\u0442\u044c \u043a\u043d\u0438\u0433\u0438. \u0414\u043b\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0442\u0435 \u0436\u0435 \u0434\u0435\u0439\u0441\u0432\u0442\u0438\u044f, \u043d\u043e \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0431\u0430\u0442\u0447\u0430\u043c\u0438. \u0412\u043e\u0437\u044c\u043c\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 4000 \u0441\u0442\u0440\u043e\u043a. \u041c\u044b \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043b\u0438 10 \u043a\u0443\u0441\u043a\u043e\u0432 \u043f\u043e 100 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">batch_ids = range(10, 50)  aligner.align_db(db_path, \\                 model_name, \\                 batch_size=100, \\                 window=60, \\                 batch_ids=batch_ids, \\                 save_pic=False,                 embed_batch_size=25, \\                 normalize_embeddings=True, \\                 show_progress_bar=True                 )<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u0443\u0441\u043a\u0430 (\u044d\u0442\u043e \u0437\u0430\u0439\u043c\u0435\u0442 \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043d\u0430 \u043c\u043e\u0435\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u044d\u0442\u043e \u043e\u043a\u043e\u043b\u043e \u043f\u044f\u0442\u0438 \u043c\u0438\u043d\u0443\u0442) \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044e \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432, \u043a\u0430\u043a \u0431\u044b\u043b\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u044b\u0448\u0435. \u0417\u0430\u0442\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435, \u0437\u0430\u0434\u0430\u0432\u0430\u044f \u043d\u043e\u0432\u044b\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0441\u0442\u0440\u043e\u043a. \u0422\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u0432\u0435\u043d\u0433\u0435\u0440\u0441\u043a\u043e\u043c \u0443 \u043d\u0430\u0441 <strong>9460<\/strong>, \u0430 \u0440\u0430\u0437\u0431\u0438\u0442\u0438\u0435 \u0438\u0434\u0435\u0442 \u043f\u043e \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u0438\u0437 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432, \u0442\u043e \u0431\u0430\u0442\u0447\u0435\u0439 \u043f\u043e 100 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 95 \u0448\u0442\u0443\u043a.<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u0442\u044c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">batch_ids = range(50, 100)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0442\u043e \u043c\u044b \u0432\u044b\u0440\u043e\u0432\u043d\u044f\u0435\u043c \u043e\u0441\u0442\u0430\u0442\u043e\u043a (\u0432\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443) \u043a\u043d\u0438\u0433\u0438. \u041f\u043e\u0441\u043b\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432 \u0443 \u043d\u0430\u0441 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b <strong>master_hu<\/strong>, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0432 \u0441\u0435\u0431\u0435 \u0432\u0435\u043d\u0433\u0435\u0440\u0441\u043a\u043e-\u0440\u0443\u0441\u0441\u043a\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e &quot;\u041c\u0430\u0441\u0442\u0435\u0440\u0430 \u0438 \u041c\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u044b&quot;.<\/p>\n<p>  <\/p>\n<h2 id=\"shag-3-sozdanie-dvuyazychnoy-knigi\">\u0428\u0430\u0433 3. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0432\u0443\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u043a\u043d\u0438\u0433\u0438<\/h2>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u0435\u0441\u043b\u0438 \u043c\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043c\u043e\u0434\u0443\u043b\u0435\u043c <strong>reader<\/strong>, \u0442\u043e \u0441\u043c\u043e\u0436\u0435\u043c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0443\u0441\u0441\u043a\u043e-\u0432\u0435\u043d\u0433\u0435\u0440\u0441\u043a\u0443\u044e \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u044e \u043a\u043d\u0438\u0433\u0438:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">from lingtrain_aligner import reader  # \u0427\u0438\u0442\u0430\u0435\u043c \u0438\u0437 \u0430\u0431\u0437\u0430\u0446\u044b \u0438 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 paragraphs_from, paragraphs_to, meta = reader.get_paragraphs(db_path, direction=&quot;from&quot;)  # \u0421\u043e\u0437\u0434\u0430\u0435\u043c html \u0441 \u043d\u0430\u0448\u0435\u0439 \u043a\u043d\u0438\u0433\u043e\u0439 reader.create_book(paragraphs_from, paragraphs_to, meta, output_path = &quot;lingtrain.html&quot;)<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/45\/ri\/21\/45ri21bw_t3o-wn5gvxyzlie580.png\" alt=\"\u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u0430\u044f \u043a\u043d\u0438\u0433\u0430 \u043d\u0430 \u0432\u0435\u043d\u0433\u0435\u0440\u0441\u043a\u043e\u043c\"><\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u043e\u0431\u044b\u043a\u043d\u043e\u0432\u0435\u043d\u043d\u0430\u044f html \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0430 \u0441\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c\u0438 \u0441\u0442\u0438\u043b\u044f\u043c\u0438. \u0414\u043b\u044f \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0432\u044f\u0437\u0435\u0439 \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a\u043e\u0439:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">reader.create_book(paragraphs_from, paragraphs_to, meta, output_path = f&quot;lingtrain.html&quot;, template=&quot;pastel_fill&quot;)<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/y5\/xy\/bt\/y5xybt9te5rgnjsudl5tdiugsts.png\" alt=\"\u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u0430\u044f \u043a\u043d\u0438\u0433\u0430 \u043d\u0430 \u0432\u0435\u043d\u0433\u0435\u0440\u0441\u043a\u043e\u043c\"><\/p>\n<p>  <\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0441\u0442\u0438\u043b\u0438, \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u044b \u043a \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0430\u0431\u0437\u0430\u0446\u0430 <strong>\u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\"># \u041b\u044e\u0431\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u044b\u0435 \u043a span'\u0430\u043c \u0441\u0442\u0438\u043b\u0438 my_style = [     '{&quot;background&quot;: &quot;linear-gradient(90deg, #FDEB71 0px, #fff 150px)&quot;, &quot;border-radius&quot;: &quot;15px&quot;}',     '{&quot;background&quot;: &quot;linear-gradient(90deg, #ABDCFF 0px, #fff 150px)&quot;, &quot;border-radius&quot;: &quot;15px&quot;}',     '{&quot;background&quot;: &quot;linear-gradient(90deg, #FEB692 0px, #fff 150px)&quot;, &quot;border-radius&quot;: &quot;15px&quot;}',     '{&quot;background&quot;: &quot;linear-gradient(90deg, #CE9FFC 0px, #fff 150px)&quot;, &quot;border-radius&quot;: &quot;15px&quot;}',     '{&quot;background&quot;: &quot;linear-gradient(90deg, #81FBB8 0px, #fff 150px)&quot;, &quot;border-radius&quot;: &quot;15px&quot;}'     ]  reader.create_book(paragraphs_from, paragraphs_to, meta, output_path = f&quot;lingtrain.html&quot;, template=&quot;custom&quot;, styles=my_style)<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hk\/dy\/oj\/hkdyoj8womkeaxixih3h0jqecie.png\" alt=\"\u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u0430\u044f \u043a\u043d\u0438\u0433\u0430 \u043d\u0430 \u0432\u0435\u043d\u0433\u0435\u0440\u0441\u043a\u043e\u043c\"><\/p>\n<p>  <\/p>\n<h2 id=\"vyravnivaem-ostalnye-knigi\">\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043d\u0438\u0433\u0438<\/h2>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044f \u0442\u0440\u0435\u0442\u0438\u0439 \u0448\u0430\u0433 \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043f\u043e\u043c\u0438\u043c\u043e \u0444\u0430\u0439\u043b\u0430 <strong>master_hu.db<\/strong> \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0448\u0435\u0441\u0442\u044c. \u041e\u0442\u043c\u0435\u0447\u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f (\u0438, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0441\u0442\u043e\u043b\u043a\u043d\u0435\u0442\u0435\u0441\u044c \u0432\u044b, \u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442\u0435 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u043a\u043d\u0438\u0433\u0443).<\/p>\n<p>  <\/p>\n<h3 id=\"bolshaya-raznica-v-kolichestve-predlozheniy\">\u0411\u043e\u043b\u044c\u0448\u0430\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439<\/h3>\n<p>  <\/p>\n<p>\u0412 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0439 \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0430\u0445 \u0431\u044b\u043b\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u043e \u043a\u0430\u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0430\u0441\u0442\u0438, \u0442\u043e\u0433\u0434\u0430 \u043a\u0430\u043a \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u0430 \u043f\u0440\u044f\u043c\u0430\u044f \u0440\u0435\u0447\u044c.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">1. \u2013 \u0424\u0443 \u0442\u044b \u0447\u0435\u0440\u0442! \u2013 \u0432\u043e\u0441\u043a\u043b\u0438\u043a\u043d\u0443\u043b \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440, \u2013 \u0442\u044b \u0437\u043d\u0430\u0435\u0448\u044c, \u0418\u0432\u0430\u043d, \u0443 \u043c\u0435\u043d\u044f \u0441\u0435\u0439\u0447\u0430\u0441 \u0435\u0434\u0432\u0430 \u0443\u0434\u0430\u0440 \u043e\u0442 \u0436\u0430\u0440\u044b \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0441\u044f! 2. - \u0414\u0430\u0436\u0435 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0433\u0430\u043b\u043b\u044e\u0446\u0438\u043d\u0430\u0446\u0438\u0438 \u0431\u044b\u043b\u043e, \u2013 \u043e\u043d \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0443\u0441\u043c\u0435\u0445\u043d\u0443\u0442\u044c\u0441\u044f, \u043d\u043e \u0432 \u0433\u043b\u0430\u0437\u0430\u0445 \u0435\u0433\u043e \u0435\u0449\u0435 \u043f\u0440\u044b\u0433\u0430\u043b\u0430 \u0442\u0440\u0435\u0432\u043e\u0433\u0430, \u0438 \u0440\u0443\u043a\u0438 \u0434\u0440\u043e\u0436\u0430\u043b\u0438.<\/code><\/pre>\n<p>  <\/p>\n<hr>\n<p>  <\/p>\n<pre><code class=\"plaintext\">1. 'Pah, the devil!' exclaimed the editor. 2. 'You know, Ivan, I nearly had heat stroke just now! 3. There was even something like a hallucination...' 4. He attempted to smile, but alarm still jumped in his eyes and his hands trembled.<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u0438\u043c\u0435\u0435\u043c <strong>9707<\/strong> \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u043f\u0440\u043e\u0442\u0438\u0432 <strong>8996<\/strong> \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c. \u042d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c <em>window=100<\/em> \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0431\u043e\u043b\u0435\u0435 1000 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/1a\/nk\/io\/1ankiov79xtb8todvvcdng9alew.png\" alt=\"english1\" width=\"400\">  <\/p>\n<p>\u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u043f\u043e\u0441\u043b\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432 \u044d\u0442\u0438 \u043a\u0443\u0441\u043e\u0447\u043a\u0438 \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0441\u043a\u043b\u0435\u044f\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/_1\/w8\/dh\/_1w8dhqouxcabxxwx4ofp0emyai.png\" alt=\"english2\" width=\"270\">  <\/p>\n<p>\u0422\u0430\u043a\u0430\u044f \u0436\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0441 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u043c \u044f\u0437\u044b\u043a\u043e\u043c, \u0442\u0430\u043c \u0432 \u0446\u0435\u043b\u043e\u043c \u0435\u0441\u0442\u044c \u0442\u0435\u043d\u0434\u0435\u043d\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \u0447\u0435\u043c \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435.<\/p>\n<p>  <\/p>\n<h3 id=\"vyhod-za-predely-okna\">\u0412\u044b\u0445\u043e\u0434 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u043e\u043a\u043d\u0430<\/h3>\n<p>  <\/p>\n<p>\u0423\u043f\u043e\u043c\u044f\u043d\u0443 \u043f\u043e\u043b\u044c\u0441\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u043e\u0436\u0435 \u0431\u044b\u043b \u043d\u0430\u0439\u0434\u0435\u043d, \u043d\u043e \u043d\u0435 \u043f\u043e\u0434\u043e\u0448\u0435\u043b \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u0435. \u0412 \u043f\u043e\u043b\u044c\u0441\u043a\u043e\u043c \u0442\u0435\u043a\u0441\u0442\u0435 (<strong>8190<\/strong> \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439) \u0443 \u043d\u0430\u0441 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0447\u0430\u0441\u0442\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0446\u0435\u043b\u044b\u0435 \u043a\u0443\u0441\u043a\u0438 \u0442\u0435\u043a\u0441\u0442\u0430. \u041f\u043e\u0442\u043e\u043a \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043e\u0431\u0440\u044b\u0432\u0438\u0441\u0442\u044b\u043c \u0438 \u043e\u043a\u043d\u0430 \u0432 100 \u0443\u0436\u0435 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442, \u2014 \u043c\u044b \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0437\u0430 \u0435\u0433\u043e \u043f\u0440\u0435\u0434\u0435\u043b\u044b:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">batch_ids = range(10,12)  aligner.align_db(db_path, \\                 model_name, \\                 batch_size=200, \\                 window=100, \\                 batch_ids=batch_ids, \\                 save_pic=False,                 embed_batch_size=25, \\                 normalize_embeddings=True, \\                 show_progress_bar=True                 )<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ym\/mc\/wz\/ymmcwzlmbxtg5clkq1xwnompoju.png\" alt=\"english1\" height=\"300\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/d0\/uc\/2o\/d0uc2omre--j_dyab-xetifltjo.png\" alt=\"english1\" height=\"300\">  <\/p>\n<p>\u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043e\u043a\u043d\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442 \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u043e\u0448\u0438\u0431\u043e\u043a, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u0432 \u0440\u0443\u0447\u043d\u043e\u0439 \u0440\u0435\u0436\u0438\u043c \u0438 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong>shift<\/strong>. \u042d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0434\u0432\u0438\u0433\u0430\u0442\u044c \u043f\u043e\u0442\u043e\u043a \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u0440\u0438 \u0440\u0430\u0441\u0447\u0435\u0442\u0435 \u0431\u0430\u0442\u0447\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">batch_ids = range(10,12)  aligner.align_db(db_path, \\                 model_name, \\                 batch_size=200, \\                 window=100, \\                 batch_ids=batch_ids, \\                 save_pic=False,                 embed_batch_size=25, \\                 normalize_embeddings=True, \\                 show_progress_bar=True,                 shift=-100 #\u0441\u0434\u0432\u0438\u0433\u0430\u0435\u043c \u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442                 )<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ug\/ko\/uu\/ugkouudluzxme1wily010fdkx1k.png\" alt=\"polish\" height=\"300\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ns\/zf\/uj\/nszfuj9jrz3cjtlppbwifp_sfts.png\" alt=\"polish\" height=\"300\">  <\/p>\n<p>\u041f\u043b\u044e\u0441\u043e\u043c \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u043e\u043a\u043d\u043e, \u0443\u043b\u0443\u0447\u0448\u0438\u0432 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e. \u041c\u0438\u043d\u0443\u0441\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432 \u044d\u0442\u0438 \u0436\u0435 \u043a\u0443\u0441\u043a\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/q0\/yy\/zf\/q0yyzfgj3hgzy_gasi-rkhngyf0.png\" alt=\"polish\" width=\"300\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/gv\/s-\/qy\/gvs-qyj7is0vcovpfnuf55ediao.png\" alt=\"polish\" width=\"300\"><\/p>\n<h3 id=\"otsutstvie-chastey-teksta\">\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0447\u0430\u0441\u0442\u0435\u0439 \u0442\u0435\u043a\u0441\u0442\u0430<\/h3>\n<p>  <\/p>\n<p>\u0420\u0443\u0447\u043d\u043e\u0439 \u0440\u0435\u0436\u0438\u043c \u043d\u0435 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u043c \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u044b\u0432\u044b, \u0435\u0441\u043b\u0438 \u0432 \u043a\u0430\u043a\u043e\u043c-\u0442\u043e \u0442\u0435\u043a\u0441\u0442\u0435 \u043d\u0435\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u043a\u0443\u0441\u043a\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/pt\/qf\/_p\/ptqf_ph8stt-iuse3gcsgtu-u8c.png\" alt=\"polish\" width=\"400\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zd\/wg\/3q\/zdwg3qs-vmvuxjf4bxxvpcuyhfg.png\" alt=\"polish\" width=\"400\">  <\/p>\n<p>\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u0438\u0445 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043a\u0430\u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u0441\u0442\u0430\u043d\u0435\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043e\u0442\u0440\u044b\u0432\u043e\u043a \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u044f\u0437\u044b\u043a\u0435. \u0415\u0441\u043b\u0438 \u0442\u0430\u043a\u0438\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0439 \u043e\u0434\u043d\u0430-\u0434\u0432\u0435 \u043d\u0430 \u0432\u0435\u0441\u044c \u0442\u0435\u043a\u0441\u0442 (\u0442\u0430\u043a \u0431\u044b\u043b\u043e \u0441 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u043c \u0438 \u0431\u0435\u043b\u043e\u0440\u0443\u0441\u0441\u043a\u0438\u043c \u0442\u0435\u043a\u0441\u0442\u0430\u043c\u0438), \u0442\u043e, \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0433\u043e. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0436\u0435 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u043e \u0431\u043e\u043b\u0435\u0435 20 \u043e\u0442\u0440\u044b\u0432\u043a\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u0435\u0433\u043e \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c.<\/p>\n<p>  <\/p>\n<h2 id=\"vtoroy-uroven-vyravnivaniya\">\u0412\u0442\u043e\u0440\u043e\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f<\/h2>\n<p>  <\/p>\n<p>\u041a \u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u043c\u0435\u043d\u0442\u0443 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0441\u0435\u043c\u044c \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f\u043c\u0438 <em>master<\/em>_*.<br \/>  \u0418\u0445 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u0432\u0441\u0435 \u043e\u043d\u0438 \u0432\u044b\u0440\u043e\u0432\u043d\u0435\u043d\u044b \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 (\u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e). \u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0430\u0431\u0437\u0430\u0446\u044b \u0438 \u0441\u0445\u043e\u0434\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>  <\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u0442\u0430\u043a \u0438 \u0441\u043f\u0443\u0441\u0442\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u043e\u0442 \u044d\u0442\u043e:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/3a\/ho\/j1\/3ahoj1bbm3d1_yr6hfk3ub0fcty.png\" alt=\"second level\">  <\/p>\n<p>\u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u0430\u0445 (\u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 \u044d\u0442\u043e \u043d\u0435\u043c\u0435\u0446\u043a\u0438\u0439) \u043e\u0434\u043d\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0433\u043b\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0443\u043c \u0440\u0443\u0441\u0441\u043a\u0438\u043c. \u0415\u0441\u043b\u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0440\u0443\u0441\u0441\u043a\u0438\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441\u0447\u0438\u0442\u0430\u043b\u0438\u0441\u044c \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0430\u0431\u0437\u0430\u0446\u0430\u043c\u0438, \u0442\u043e \u044d\u0442\u0438 \u0430\u0431\u0437\u0430\u0446\u044b \u0431\u0443\u0434\u0443\u0442 \u0441\u043b\u0438\u0442\u044b \u0432 \u043e\u0434\u0438\u043d. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0434\u0432\u0443\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u043a\u043d\u0438\u0436\u043a\u0435 \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u043e, \u043d\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0430\u0431\u0437\u0430\u0446\u0435\u0432 \u0443 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f. \u041d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u0431\u0430\u0437\u0435 (\u043d\u0430\u0448\u0438 *.db \u0444\u0430\u0439\u043b\u044b).<\/p>\n<p>  <\/p>\n<h3 id=\"metadannye\">\u041c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435<\/h3>\n<p>  <\/p>\n<p>\u0412 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0442\u043e\u043c, \u043a\u0430\u043a\u043e\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0430\u043a\u043e\u043c\u0443 \u0430\u0431\u0437\u0430\u0446\u0443 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442. \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0430\u0431\u0437\u0430\u0446\u0435\u0432 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u0432\u0438\u0434\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0447\u0438\u0441\u0435\u043b, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u043d\u043e\u043c\u0435\u0440 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u0430\u0431\u0437\u0430\u0446\u0435.<br \/>  \u042d\u0442\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0438\u0442\u044c \u0432 \u043e\u0434\u0438\u043d \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0431\u043e\u043b\u0435\u0435 \u043c\u0435\u043b\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">par_struct_1 = [2, 5, 6, 8, 10, 12, ...] par_struct_2 = [2, 6, 8, 10, 11, 12, ...]  res = [2, 6, 8, 10, 12, ...]<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043a\u043d\u0438\u0433\u0443 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043d\u043e\u0432\u043e\u0439 \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u0438, \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ua\/lu\/ik\/ualuikeb7f9kqz1w-oznd2e9ayk.png\" alt=\"second level\">  <\/p>\n<p>\u0421\u0442\u0430\u043b\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043b\u0443\u0447\u0448\u0435, \u0442\u0435\u043f\u0435\u0440\u044c \u0430\u0431\u0437\u0430\u0446\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u043d\u0430 \u0435\u0434\u0438\u043d\u043e\u0439 \u043e\u0441\u043d\u043e\u0432\u0435.<\/p>\n<p>  <\/p>\n<h3 id=\"indeks\">\u0418\u043d\u0434\u0435\u043a\u0441<\/h3>\n<p>  <\/p>\n<p>\u0410\u0431\u0437\u0430\u0446\u044b \u043f\u043e\u0447\u0438\u043d\u0438\u043b\u0438, \u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0443 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0438 \u0443\u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u043e\u043d\u0430 \u0440\u0430\u0437\u044a\u0435\u0445\u0430\u043b\u0430\u0441\u044c:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/m9\/ij\/ov\/m9ijovxvlobvkyjzp30f8wep2_q.png\" alt=\"index\">  <\/p>\n<p>\u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u044d\u0442\u043e\u0433\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u0442\u0435\u043a\u0441\u0442\u044b \u0438\u043c\u0435\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u0442\u0435\u043d\u0434\u0435\u043d\u0446\u0438\u0438 \u043f\u043e \u0434\u0435\u043b\u0435\u043d\u0438\u044e \u043d\u0430 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0427\u0442\u043e\u0431\u044b \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0449\u0435 \u0438 \u0438\u0445, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c\u044e, \u2014 \u0441 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u043c.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u044f \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u043a \u0438\u043d\u0434\u0435\u043a\u0441. \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f \u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u043d \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">[     --\u043f\u0435\u0440\u0432\u044b\u0439 \u0431\u0430\u0442\u0447     [         --\u043f\u0435\u0440\u0432\u0430\u044f \u043f\u0430\u0440\u0430 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043a\u043e\u0440\u043f\u0443\u0441\u0430         [1, &quot;[1,2]&quot;, 1, &quot;[1]&quot;],          --\u0432\u0442\u043e\u0440\u0430\u044f \u0438 \u0442.\u0434.         [2, &quot;[3]&quot;, 2, &quot;[2]&quot;],         [3, &quot;[4,5]&quot;, 3, &quot;[3]&quot;],         [4, &quot;[6]&quot;, 4, &quot;[4,5,6]&quot;],         ...     ],     --\u0432\u0442\u043e\u0440\u043e\u0439 \u0431\u0430\u0442\u0447     [         [1, &quot;[100]&quot;, 1, &quot;[105]&quot;],         ...     ],     ... ]<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435 \u043c\u044b \u0441\u043a\u043b\u0435\u0438\u043b\u0438 \u0434\u0432\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f &quot;\u043b\u0435\u0432\u043e\u0433\u043e&quot; \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0435\u043c\u0443 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 &quot;\u043f\u0440\u0430\u0432\u043e\u0433\u043e&quot;. \u0427\u0438\u0441\u043b\u0430 \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u0445 \u2014 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0432\u043d\u0435 \u043a\u0430\u0432\u044b\u0447\u0435\u043a \u2014 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0441\u043b\u0438\u044f\u043d\u0438\u0438 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a<\/li>\n<li>\u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u043b\u044e\u0431\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u043a<\/li>\n<li>\u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438\u0437 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u0440\u043f\u0443\u0441\u0430, \u0443\u0434\u0430\u043b\u0438\u0432 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0438\u043d\u0434\u0435\u043a\u0441\u0430<\/li>\n<li>\u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u043d\u0435 \u043c\u0435\u043d\u044f\u044f \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438<\/li>\n<li>\u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0431\u0430\u0442\u0447\u0438, \u043d\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u0434\u043b\u044f \u043d\u0430\u0441 \u0437\u0434\u0435\u0441\u044c \u0442\u043e, \u0447\u0442\u043e \u0438\u0437 \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u044b\u0442\u0430\u0449\u0438\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043a\u043e\u0440\u043f\u0443\u0441\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430. \u0421\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0430\u0431\u0437\u0430\u0446\u044b \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0443, \u043c\u044b \u043e\u043f\u044f\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0441\u043b\u0438\u0432\u0430\u0442\u044c \u043f\u043e \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u0443 \u0442\u0430\u043a\u043e\u0433\u043e \u0442\u0438\u043f\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">[[1], [2], [3]] -&gt; [[1, 2, 3], [4], [5]] -&gt; [[1], [2], [3]] [[4]] -&gt; [[6]] -&gt; [[4]] [[5]] -&gt; [[7]] -&gt; [[5, 6]] ...<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u043a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u2014 \u044d\u0442\u043e \u0430\u0431\u0437\u0430\u0446 \u043d\u0430 \u0442\u0440\u0435\u0445 \u044f\u0437\u044b\u043a\u0430\u0445, \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u043e\u0434\u043c\u0430\u0441\u0441\u0438\u0432 \u0430 \u0430\u0431\u0437\u0430\u0446\u0435 \u2014 \u044d\u0442\u043e \u043d\u043e\u043c\u0435\u0440\u0430 \u0441\u0442\u0440\u043e\u043a \u0438\u0437 \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u043b\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0430\u0431\u0437\u0430\u0446\u0435\u0432 \u043d\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0443 \u0447\u0430\u0441\u0442\u0435\u0439.<\/p>\n<p>  <\/p>\n<h3 id=\"posle-ispravleniy\">\u041f\u043e\u0441\u043b\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0439<\/h3>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u0441\u0442\u0430\u043d\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0430 \u0442\u0435\u043f\u0435\u0440\u044c:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/sj\/lz\/_n\/sjlz_n4pbidz1c9edtn38wm2giw.png\" alt=\"book\">  <\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043f\u043e \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 (\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u043c \u0431\u044b\u043b\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u0430\u0431\u0437\u0430\u0446), \u0442\u043e \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0430 \u0441\u0442\u0430\u043b\u0430 \u0440\u043e\u0432\u043d\u0435\u0435, \u043d\u043e \u0431\u0435\u0434\u043d\u0435\u0435. \u0415\u0441\u043b\u0438 \u0443\u0431\u0440\u0430\u0442\u044c \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0439, \u0442\u043e \u043e\u043d\u0430 \u0441\u0442\u0430\u043d\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/lo\/-2\/fg\/lo-2fgkbsv4waawswwke-c-qdfa.png\" alt=\"book\"><\/p>\n<h2 id=\"shag-4-sozdanie-mnogoyazychnoy-knigi\">\u0428\u0430\u0433 4. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u043d\u043e\u0433\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u043a\u043d\u0438\u0433\u0438<\/h2>\n<p>  <\/p>\n<p>\u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0432\u0443\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u043d\u0438\u0433\u0438 \u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 <strong>get_paragraphs()<\/strong> \u0438 <strong>create_book()<\/strong>. \u041d\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0434\u043e\u0447\u0438\u0442\u0430\u043b\u0438 \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430, \u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e\u044f\u0437\u044b\u0447\u043d\u0443\u044e \u043a\u043d\u0438\u0433\u0443.<\/p>\n<p>  <\/p>\n<p>\u041b\u043e\u0433\u0438\u043a\u0430 \u043f\u043e \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044e \u0430\u0431\u0437\u0430\u0446\u0435\u0432 \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0445 \u043a\u043d\u0438\u0433 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <strong>get_paragraphs_polybook()<\/strong>, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u043c \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u0444\u0430\u0439\u043b\u044b. \u0422\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043e\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043d\u043e\u043c\u0435\u0440\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a, \u0442\u043e \u0432 \u0444\u0430\u0439\u043b\u0430\u0445 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432, \u0438\u043d\u0430\u0447\u0435 \u0430\u0431\u0437\u0430\u0446\u044b \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0430 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0438\u043c \u043a\u043e\u0434\u043e\u043c (\u043a\u0430\u043a \u0438\u0445 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0442\u044c \u0432\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u0442\u0435):<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">from lingtrain_aligner import resolver  conflicts_to_solve, rest = resolver.get_all_conflicts(db_path, min_chain_length=2, max_conflicts_len=20, batch_id=-1)  #\u043f\u0435\u0440\u0435\u0434 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432 resolver.get_statistics(conflicts_to_solve) resolver.get_statistics(rest)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043d\u0430\u0431\u043e\u0440 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u043d\u0430 \u0432\u0441\u0435\u0445 \u043d\u0443\u0436\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430\u0445:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">from lingtrain_aligner import reader  db_path1 = &quot;db\/master_de.db&quot; db_path2 = &quot;db\/master_uk.db&quot; db_path3 = &quot;db\/master_be.db&quot; db_path4 = &quot;db\/master_zh.db&quot; db_path5 = &quot;db\/master_cz.db&quot; db_path6 = &quot;db\/master_en.db&quot; db_path7 = &quot;db\/master_hu.db&quot;  paragraphs, metas = reader.get_paragraphs_polybook(                         db_paths=[db_path1, db_path2, db_path3, db_path4, db_path5, db_path6, db_path7])<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435, \u2014 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0430\u043c \u044f\u0437\u044b\u043a\u0438 \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0430\u0448\u0443 \u043a\u043d\u0438\u0436\u043a\u0443. \u041c\u043e\u0436\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u0437\u044f\u0442\u044c \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0438 \u043d\u0435\u043c\u0435\u0446\u043a\u0438\u0439, \u043c\u043d\u043e\u0433\u0438\u0435 \u0443\u0447\u0430\u0442 \u044d\u0442\u0438 \u044f\u0437\u044b\u043a\u0438 \u0432 \u043f\u0430\u0440\u0435.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">reader.create_polybook(                 lang_ordered=[&quot;en&quot;, &quot;de&quot;, &quot;ru&quot;],                 paragraphs = paragraphs,                 delimeters = delimeters,                 metas = metas,                 output_path = &quot;lingtrain_master.tml&quot;,                 template=&quot;none&quot;)<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/rn\/zt\/gd\/rnztgden0sv5axapwebnwct6vgu.png\" alt=\"book\"><\/p>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <em>lang_ordered<\/em> \u0437\u0430\u0434\u0430\u0435\u0442 \u043d\u0430\u0431\u043e\u0440 \u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u044f\u0437\u044b\u043a\u043e\u0432.  <\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u0435\u043b\u043e\u0440\u0443\u0441\u0441\u043a\u043e-\u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">reader.create_polybook(                 lang_ordered=[&quot;be&quot;, &quot;zh&quot;],                 paragraphs = paragraphs,                 delimeters = delimeters,                 metas = metas,                 output_path = &quot;lingtrain_master.html&quot;,                 template=&quot;none&quot;)<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/6b\/bu\/zz\/6bbuzzc1chhx0nlmzhkztbg-muk.png\" alt=\"book\"><\/p>\n<p>\u041c\u043e\u0436\u043d\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0438 \u0432\u0441\u0451 \u0432\u0437\u044f\u0442\u044c:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">reader.create_polybook(                 lang_ordered = [&quot;ru&quot;, &quot;en&quot;, &quot;de&quot;, &quot;be&quot;, &quot;uk&quot;, &quot;cz&quot;, &quot;hu&quot;, &quot;zh&quot;],                 paragraphs = paragraphs,                 delimeters = delimeters,                 metas = metas,                 output_path = &quot;lingtrain_master_total.html&quot;,                 template=&quot;none&quot;)<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/yo\/wt\/ux\/yowtuxdmia4qlao3hbx14o8npca.png\" alt=\"book\"><\/p>\n<p>  \u041b\u0443\u0447\u0448\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0435 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f (*.db \u0444\u0430\u0439\u043b\u044b), \u044f\u0437\u044b\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445, \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u044b. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431 \u0430\u0431\u0437\u0430\u0446\u0430\u0445. \u0421\u043e \u0441\u0442\u0438\u043b\u044f\u043c\u0438 \u0432\u0441\u0435 \u043a\u0430\u043a \u0440\u0430\u043d\u044c\u0448\u0435, \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c <em>template<\/em> (\u0441\u0435\u0439\u0447\u0430\u0441 \u0435\u0441\u0442\u044c &quot;pastel_fill&quot;, &quot;pastel_start&quot;), \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438, \u2014 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0435\u0441\u0442\u044c \u0432\u044b\u0448\u0435 \u0438 \u0432 \u0431\u043b\u043e\u043a\u043d\u043e\u0442\u0435 \u043d\u0430 Colab. \u0415\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u0442\u044c <em>template=&quot;none&quot;<\/em>, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0447\u0438\u0441\u0442\u0430\u044f \u043a\u043d\u0438\u0433\u0430.<\/p>\n<h2 id=\"plany-i-podderzhka\">\u041f\u043b\u0430\u043d\u044b \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430<\/h2>\n<p>  <\/p>\n<ul>\n<li>\u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c fb2 \u0444\u043e\u0440\u043c\u0430\u0442 \u0434\u043b\u044f \u0447\u0438\u0442\u0430\u043b\u043e\u043a \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434. \u0422\u0430\u043a\u0436\u0435 \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u0441\u0442\u0430\u0432\u043a\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a. \u0417\u0430\u0442\u0435\u043c \u043e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u044d\u0442\u043e \u0432 \u0432\u0438\u0434\u0435 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u043b\u044e\u0434\u0438 \u043c\u043e\u0433\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u043d\u0438\u0433\u0438 \u0431\u0435\u0437 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430.<\/li>\n<li>\u0421\u043a\u0438\u0434\u044b\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u044b \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f, \u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u0431\u0430\u0433\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0432 \u043a\u0430\u043d\u0430\u043b\u0435 <a href=\"http:\/\/t.me\/lingtrain_books\" rel=\"nofollow noopener noreferrer\">http:\/\/t.me\/lingtrain_books<\/a>.<\/li>\n<li>\u041f\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0444\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u043e \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/www.tinkoff.ru\/sl\/1mDqKGICUwH\" rel=\"nofollow noopener noreferrer\">\u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c<\/a>. \u0414\u0435\u043d\u044c\u0433\u0438 \u043f\u043e\u0439\u0434\u0443\u0442 \u043d\u0430 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0443\u0441\u043a\u043e\u0440\u044f\u0442 \u0435\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443.<\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"ssylki\">\u0421\u0441\u044b\u043b\u043a\u0438<\/h2>\n<p>  <\/p>\n<p>\u0412\u0441\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044b\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0441\u0441\u044b\u043b\u043a\u0438:<\/p>\n<p>  <\/p>\n<p>[1] <a href=\"https:\/\/habr.com\/ru\/post\/557664\/\">\u041f\u0435\u0440\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u0438<\/a><\/p>\n<p>  <\/p>\n<p>[2] <a href=\"https:\/\/github.com\/averkij\/lingtrain-aligner\" rel=\"nofollow noopener noreferrer\">\u041a\u043e\u0434 lingtrain-aligner \u043d\u0430 github<\/a><\/p>\n<p>  <\/p>\n<p>[3] <a href=\"https:\/\/colab.research.google.com\/drive\/1r8vHKn_2vreu8AWTzOgk1CbWrDnWmdyC\" rel=\"nofollow noopener noreferrer\">Google Colab \u0431\u043b\u043e\u043a\u043d\u043e\u0442 \u0441 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435\u043c<\/a><\/p>\n<p>  <\/p>\n<p>[4] <a href=\"https:\/\/vk.com\/talentless_deer\" rel=\"nofollow noopener noreferrer\">\u041a\u043e\u0442 \u0411\u0435\u0433\u0435\u043c\u043e\u0442 \u0441 \u043e\u0431\u043b\u043e\u0436\u043a\u0438 \u0431\u044b\u043b \u043d\u0430\u0439\u0434\u0435\u043d \u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n<p>  <\/p>\n<p>[5] <a href=\"https:\/\/disk.yandex.com\/d\/6MRpQarPZAfjlA\" rel=\"nofollow noopener noreferrer\">PDF. \u0421\u0435\u043c\u044c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u043d\u0438\u0433 &quot;\u041c\u0430\u0441\u0442\u0435\u0440 \u0438 \u041c\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430&quot;<\/a><\/p>\n<p>  <\/p>\n<p>[6] <a href=\"http:\/\/t.me\/lingtrain_books\" rel=\"nofollow noopener noreferrer\">\u0422\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u0433\u0440\u0443\u043f\u043f\u0430<\/a><\/p>\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\/560692\/\"> https:\/\/habr.com\/ru\/post\/560692\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/4y\/hh\/dn\/4yhhdnebispmireg2piqoiwn2n4.png\" alt=\"Lingtrain parallel books article cover\"><\/p>\n<p>  <\/p>\n<p>\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437 \u043c\u044b \u0441 \u0432\u0430\u043c\u0438 \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043d\u0438\u0433\u0438 \u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0440\u0443\u0441\u0441\u043a\u043e-\u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u0442\u0440\u044b\u0432\u043a\u0430 \u0440\u043e\u043c\u0430\u043d\u0430 \u0425\u0430\u0440\u043f\u0435\u0440 \u041b\u0438 &quot;\u0423\u0431\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u043c\u0435\u0448\u043d\u0438\u043a\u0430&quot;. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e \u043c\u043d\u043e\u0433\u043e\u044f\u0437\u044b\u0447\u043d\u0443\u044e \u043a\u043d\u0438\u0433\u0443 \u043d\u0430 \u0432\u043e\u0441\u044c\u043c\u0438 \u044f\u0437\u044b\u043a\u0430\u0445.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u043f\u043e\u043c\u043d\u044e, \u0447\u0442\u043e \u0446\u0435\u043b\u044c\u044e \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043b\u044e\u0434\u044f\u043c, \u0438\u0437\u0443\u0447\u0430\u044e\u0449\u0438\u043c \u0438 \u043f\u0440\u0435\u043f\u043e\u0434\u0430\u044e\u0449\u0438\u043c \u0438\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0435 \u044f\u0437\u044b\u043a\u0438, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0443\u0447\u0435\u0431\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043d\u0438\u0433\u0438 \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043d\u0430\u0432\u044b\u043a\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f. \u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0442\u0440\u0443\u0434\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u0434\u043b\u044f \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0441 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c, \u0442\u043e\u0433\u0434\u0430 \u043a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u043a\u043d\u0438\u0433\u0443 \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435 \u0438 \u0435\u0435 \u0440\u0443\u0441\u0441\u043a\u0443\u044e \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u044e \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435. <\/p>\n<p>  <\/p>\n<h2 id=\"snachala-sdelaem-sem-knig\">\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0441\u0435\u043c\u044c \u043a\u043d\u0438\u0433<\/h2>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0434\u0435\u043b\u0430\u0435\u043c \u0432\u0441\u0435 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0440\u043e\u043c\u0430\u043d\u0430 \u0411\u0443\u043b\u0433\u0430\u043a\u043e\u0432\u0430 &quot;\u041c\u0430\u0441\u0442\u0435\u0440 \u0438 \u041c\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430&quot;, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u0435\u043d \u0432 \u043c\u0438\u0440\u0435 \u0438 \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d \u043d\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u044f\u0437\u044b\u043a\u043e\u0432. \u042f \u043d\u0430\u0448\u0435\u043b \u0435\u0433\u043e \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u0438 \u043d\u0435\u043c\u0435\u0446\u043a\u043e\u043c (\u0433\u0435\u0440\u043c\u0430\u043d\u0441\u043a\u0438\u0435 \u044f\u0437\u044b\u043a\u0438); \u0431\u0435\u043b\u043e\u0440\u0443\u0441\u0441\u043a\u043e\u043c, \u0447\u0435\u0448\u0441\u043a\u043e\u043c \u0438 \u0443\u043a\u0440\u0430\u0438\u043d\u0441\u043a\u043e\u043c (\u0441\u043b\u0430\u0432\u044f\u043d\u0441\u043a\u0438\u0435 \u044f\u0437\u044b\u043a\u0438); \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430 \u0432\u0435\u043d\u0433\u0435\u0440\u0441\u043a\u043e\u043c \u0438 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0430\u0445. \u0412\u0441\u0435 \u0441\u0435\u043c\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u043c\u044b \u0432\u044b\u0440\u043e\u0432\u043d\u044f\u0435\u043c \u0441 \u0440\u0443\u0441\u0441\u043a\u0438\u043c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u043e\u043c, \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u0435\u043c\u044c \u043a\u043d\u0438\u0433. \u0417\u0430\u0442\u0435\u043c \u0432\u044b\u0440\u043e\u0432\u043d\u044f\u0435\u043c \u0438\u0445 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u044f\u0437\u044b\u043a\u043e\u0432 \u0434\u043b\u044f \u0441\u0432\u043e\u0435\u0439 \u043a\u043d\u0438\u0433\u0438 \u0432 \u043b\u044e\u0431\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u041f\u043e\u043b\u043d\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a\u043d\u0438\u0433 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 pdf \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u043f\u0430\u0440\u044b \u0432\u0435\u043d\u0433\u0435\u0440\u0441\u043a\u0438\u0439-\u0440\u0443\u0441\u0441\u043a\u0438\u0439.<\/p>\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-324237","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/324237","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=324237"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/324237\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=324237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=324237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=324237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}