{"id":464564,"date":"2025-06-25T21:00:55","date_gmt":"2025-06-25T21:00:55","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=464564"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=464564","title":{"rendered":"<span>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 NER, \u0437\u0430\u0447\u0435\u043c \u043e\u043d \u043d\u0443\u0436\u0435\u043d \u0438 \u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043f\u043e\u043c\u043e\u0436\u0435\u0442<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u043e NER \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043d\u0435\u043c\u0430\u043b\u043e, \u043d\u043e \u044d\u0442\u043e\u0442 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043d\u043e\u0441\u0438\u0442 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u043e\u0439 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440. \u0421\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u0430 \u0442\u0435\u043c, \u043a\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442\u0441\u044f NLP \u0438 \u0438\u0449\u0435\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0443\u0437\u043a\u043e\u043f\u0440\u043e\u0444\u0438\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447, \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0438\u0445 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439 \u0438\u0437 \u0442\u0435\u043a\u0441\u0442\u0430.<\/p>\n<p>\u0414\u043b\u044f \u0434\u0436\u0443\u043d\u043e\u0432 \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0439\u0442\u0438 \u0432\u0435\u0441\u044c \u043f\u0443\u0442\u044c \u2014 \u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0439 NER-\u043c\u043e\u0434\u0435\u043b\u0438, \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f.<\/p>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u043c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440 \u0410\u0433\u0435\u0435\u0432, \u043d\u0430 \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0438 \u0433\u043e\u0434\u0430 \u044f \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u0441\u044f NER-\u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438 \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439 \u043d\u0430 \u044d\u0442\u0438\u043a\u0435\u0442\u043a\u0430\u0445 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u043f\u0438\u0442\u0430\u043d\u0438\u044f. \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u043c\u043e\u044e \u043b\u044e\u0431\u043e\u0432\u044c \u043a NER, \u0443 \u044d\u0442\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0438 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u2014 \u043a\u0435\u0439\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d\u0430 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0440\u0435\u0448\u0438\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0434\u0430\u043c \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e\u0441\u0442\u0438 NER \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0437\u0430\u0434\u0430\u0447.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/df6\/890\/d18\/df6890d1893fa9a5e7548587a93727f6.png\" width=\"740\" height=\"417\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/df6\/890\/d18\/df6890d1893fa9a5e7548587a93727f6.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/df6\/890\/d18\/df6890d1893fa9a5e7548587a93727f6.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<h2>\u041a\u0440\u0430\u0442\u043a\u0438\u0439 \u044d\u043a\u0441\u043a\u0443\u0440\u0441<\/h2>\n<p><strong>Named Entity Recognition (NER) <\/strong>\u2014 \u044d\u0442\u043e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439 \u0438\u0437\u00a0\u0442\u0435\u043a\u0441\u0442\u0430: \u0437\u043d\u0430\u0447\u0438\u043c\u044b\u0445 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u0440\u043e\u0434\u0435 \u0438\u043c\u0435\u043d, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0439, \u0433\u043e\u0440\u043e\u0434\u043e\u0432, \u0434\u0430\u0442, \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u0438\u0445 \u043a\u043e\u0434\u043e\u0432 \u0438\u00a0\u0442.\u00a0\u0434.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: \u00ab\u0418\u043b\u043e\u043d \u041c\u0430\u0441\u043a \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043b \u0437\u0430\u043f\u0443\u0441\u043a Starship \u0432\u00a0\u0422\u0435\u0445\u0430\u0441\u0435 \u0432\u0435\u0441\u043d\u043e\u0439 2025\u00a0\u0433\u043e\u0434\u0430\u00bb.<\/p>\n<p>NER \u0432\u044b\u0434\u0435\u043b\u0438\u0442:<\/p>\n<ul>\n<li>\n<p>\u0418\u043b\u043e\u043d \u041c\u0430\u0441\u043a \u2192 \u043f\u0435\u0440\u0441\u043e\u043d\u0430 (PER)<\/p>\n<\/li>\n<li>\n<p>Starship \u2192 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \/ \u043f\u0440\u043e\u0435\u043a\u0442 (PRODUCT)<\/p>\n<\/li>\n<li>\n<p>\u0422\u0435\u0445\u0430\u0441 \u2192 \u0433\u0435\u043e (LOC)<\/p>\n<\/li>\n<li>\n<p>\u0432\u0435\u0441\u043d\u0430 2025\u00a0\u0433\u043e\u0434\u0430 \u2192 \u0434\u0430\u0442\u0430 (DATA)<\/p>\n<\/li>\n<\/ul>\n<p>NER \u0448\u0438\u0440\u043e\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432:<\/p>\n<ul>\n<li>\n<p>\u0431\u0430\u043d\u043a\u0430\u0445 \u0438 \u0441\u0442\u0440\u0430\u0445\u043e\u0432\u044b\u0445 \u0434\u043b\u044f\u00a0\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439, \u0418\u041d\u041d, \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u0441\u0443\u043c\u043c, \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u044e\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0445 \u0434\u043b\u044f\u00a0\u043f\u043e\u0438\u0441\u043a\u0430 \u0434\u0430\u0442, \u043d\u043e\u043c\u0435\u0440\u043e\u0432 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u043e\u0432, \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0447\u0430\u0442\u2011\u0431\u043e\u0442\u0430\u0445 \u0438 \u0442\u0435\u0445\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 \u0434\u043b\u044f\u00a0\u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u043d, \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432, \u0437\u0430\u044f\u0432\u043e\u043a, \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0435\u00a0\u2014 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u0442 \u043a\u043e\u0434\u044b \u0434\u0438\u0430\u0433\u043d\u043e\u0437\u043e\u0432, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u043f\u0430\u0440\u0430\u0442\u043e\u0432, \u0434\u0430\u0442\u044b \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440;<\/p>\n<\/li>\n<li>\n<p>\u043b\u043e\u0433\u0438\u0441\u0442\u0438\u043a\u0435: \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u043d\u043e\u043c\u0435\u0440\u043e\u0432 \u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0445, \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u0435\u0439, \u0433\u0440\u0443\u0437\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0432\u0443\u0447\u0438\u0442 \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u043e\u00a0\u0437\u0430\u00a0\u044d\u0442\u0438\u043c \u0441\u0442\u043e\u0438\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0438\u044f.<\/p>\n<p>\u041d\u0430\u00a0\u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441\u00a0\u0440\u044f\u0434\u043e\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u0435\u0442\u00a0\u0431\u044b\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441\u00a0\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439\u00a0\u2014 \u041e\u041e\u041e \u00ab\u041c\u043e\u0441\u043a\u0432\u0430\u00bb. \u0422\u0430\u043a\u0436\u0435 \u043e\u0434\u043d\u043e \u0441\u043b\u043e\u0432\u043e\u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0435 \u043f\u043e\u0440\u043e\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u00a0\u0441\u0435\u0431\u0435 \u0434\u0432\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438\u00a0\u2014 \u044d\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435\u00a0\u0440\u0435\u0448\u0430\u0435\u043c\u0430 \u0432\u00a0\u0440\u0430\u043c\u043a\u0430\u0445 spaCy, \u0442\u0430\u043a \u043a\u0430\u043a\u00a0\u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u043d\u0435\u00a0\u043c\u043e\u0433\u0443\u0442 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0440\u0443\u0433 \u043d\u0430\u00a0\u0434\u0440\u0443\u0433\u0430 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u043a\u00a0\u0434\u0432\u0443\u043c \u0440\u0430\u0437\u043d\u044b\u043c \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043c. \u041d\u0435\u0440\u0435\u0434\u043a\u0438 \u0441\u043b\u0443\u0447\u0430\u0438 \u0441\u043b\u0438\u043f\u0430\u043d\u0438\u044f \u0441\u043b\u043e\u0432 \u0434\u0440\u0443\u0433 \u0441\u00a0\u0434\u0440\u0443\u0433\u043e\u043c \u0438\u043b\u0438\u00a0\u0441\u00a0\u043f\u0440\u0435\u0434\u043b\u043e\u0433\u0430\u043c\u0438 (\u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0438\u043d\u0433\u043e\u043c). \u0418, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043f\u0430\u0434\u0430\u0442\u044c \u0438\u0437\u00a0\u043c\u043d\u043e\u0433\u043e\u0448\u0443\u043c\u043e\u0432\u044b\u0445 \u043a\u0430\u043d\u0430\u043b\u043e\u0432, \u0442\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e: <em>\u00ab\u041a\u043b\u0438\u0435\u043d\u0442 \u041e\u041e\u041e \u0410\u043b\u044c\u0444\u0430\u0411\u0438\u0437\u043d\u0435\u0441\u0421\u043d\u0430\u0431 \u043f\u0440\u0438\u0441\u043b\u0430\u043b \u0441\u0447\u0435\u0442 \u0438\u0437\u00a0\u041f\u0438\u0442\u0435\u0440\u0430. \u041d\u0435\u00a0\u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e\u00a0\u044e\u0440.\u00a0\u043b\u0438\u0446\u043e \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e, \u0443\u0442\u043e\u0447\u043d\u0438\u0442\u044c \u043f\u043e\u00a0\u0418\u041d\u041d 7\u00a0812\u00a0345\u00a0678\u00bb<\/em>\u00a0\u2014 \u0442\u0443\u0442 \u0438 \u0441\u043b\u0438\u0442\u043d\u044b\u0435 \u0441\u043b\u043e\u0432\u0430, \u0438 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u043a\u0430\u0432\u044b\u0447\u043a\u0438, \u0438 \u043e\u0431\u0440\u044b\u0432\u043a\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439.<\/p>\n<h2>\u041d\u0430 \u0447\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u0430\u043d NER<\/h2>\n<p>\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 NER \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u043b\u0441\u044f \u0432\u00a0\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0430\u043f\u043e\u0432:<\/p>\n<ol>\n<li>\n<p><strong>\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0438 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/strong><\/p>\n<ul>\n<li>\n<p>\u0411\u044b\u0441\u0442\u0440\u043e, \u0434\u0435\u0448\u0435\u0432\u043e, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f\u00a0\u0441\u0442\u0440\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439: email&#8217;\u043e\u0432, \u043d\u043e\u043c\u0435\u0440\u043e\u0432 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432, \u043f\u0430\u0441\u043f\u043e\u0440\u0442\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435<\/strong><\/p>\n<ul>\n<li>\n<p>Conditional Random Fields, SVM.<\/p>\n<\/li>\n<li>\n<p>\u0422\u0440\u0435\u0431\u0443\u044e\u0442 \u0440\u0443\u0447\u043d\u043e\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0438\u0438 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432 (features), \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0438.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0413\u043b\u0443\u0431\u043e\u043a\u043e\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435<\/strong><\/p>\n<ul>\n<li>\n<p>BiLSTM\u2011CRF, Transformer\u2011\u043c\u043e\u0434\u0435\u043b\u0438 (BERT \u0438 \u043f\u0440.)<\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u0435\u0442 \u043b\u0443\u0447\u0448\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u00a0\u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0438 \u043d\u0430\u00a0\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043e\u0431\u044a\u0435\u043c\u0430\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u044d\u0442\u0430\u043f\u043e\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 LLM. \u041d\u043e\u00a0\u0432\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\u0437\u00a0\u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0437\u043e\u043b\u043e\u0442\u0430\u044f \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0430\u00a0\u2014 \u0447\u0442\u043e\u2011\u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0438, \u043d\u043e\u00a0\u043d\u0435\u00a0\u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0435\u0435 GPU. \u0418\u043c\u0435\u043d\u043d\u043e \u0437\u0434\u0435\u0441\u044c \u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043d\u0430\u00a0\u043f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u043d\u044b\u0439 NER \u043d\u0430\u00a0CPU.<\/p>\n<h2>\u041a\u043e\u0433\u0434\u0430 NER \u2014 \u0445\u043e\u0440\u043e\u0448\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c NER \u0441\u0442\u043e\u0438\u0442, \u0435\u0441\u043b\u0438:<\/p>\n<ul>\n<li>\n<p>\u0443\u00a0\u0432\u0430\u0441 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0438\u043b\u0438\u00a0\u043f\u043e\u043b\u0443\u0444\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 (\u043d\u043e\u0432\u043e\u0441\u0442\u0438, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b, \u0441\u043e\u0446\u0441\u0435\u0442\u0438),<\/p>\n<\/li>\n<li>\n<p>\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u044c \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u0432\u0440\u043e\u0434\u0435 \u0438\u043c\u0435\u043d \u043b\u044e\u0434\u0435\u0439, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439, \u0434\u0430\u0442, \u043b\u043e\u043a\u0430\u0446\u0438\u0439,<\/p>\n<\/li>\n<li>\n<p>\u0432\u044b \u043d\u0435\u00a0\u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u043b\u0438\u00a0\u043d\u0435\u00a0\u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438,<\/p>\n<\/li>\n<li>\n<p>\u043d\u0443\u0436\u043d\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0435\u00a0\u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u00a0CPU,<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u0443\u044e LLM.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e\u00a0\u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e\u0441\u0442\u044c\u00a0\u2014 \u0440\u0430\u0437\u043c\u0435\u0442\u044c\u0442\u0435 \u0434\u043e <strong>100\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430<\/strong>, \u0438 \u0443\u0436\u0435 \u0441\u0442\u0430\u043d\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043c\u043e\u0436\u043d\u043e\u00a0\u043b\u0438 \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u043b\u0438\u00a0\u043d\u0435\u0442.<\/p>\n<h2>\u041a\u043e\u0433\u0434\u0430 NER \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442<\/h2>\n<p>NER\u2011\u043c\u043e\u0434\u0435\u043b\u0438, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043d\u0430\u00a0\u0431\u0430\u0437\u0435 spaCy \u0438\u043b\u0438\u00a0\u0434\u0440\u0443\u0433\u0438\u0445 \u043b\u0435\u0433\u043a\u043e\u0432\u0435\u0441\u043d\u044b\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432, \u043f\u043b\u043e\u0445\u043e \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441<strong> <\/strong>\u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u0441\u00a0\u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u0434\u043b\u0438\u043d\u043d\u044b\u043c \u0445\u0432\u043e\u0441\u0442\u043e\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f\u043c\u0438 \u0438\u043b\u0438\u00a0\u0446\u0435\u043b\u044b\u043c\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<p>\u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u00a0\u2014 \u043d\u0435\u0442 \u044f\u0440\u043a\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432, \u043d\u0435\u0442 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c\u043e\u0441\u0442\u0438, \u043d\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u043b\u044f\u00a0\u043e\u0431\u043e\u0431\u0449\u0435\u043d\u0438\u044f. \u041c\u043e\u0434\u0435\u043b\u044c \u043d\u0435\u00a0\u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442, \u0447\u0442\u043e\u00a0\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u044d\u0442\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u00a0\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u043c \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0435.<\/p>\n<p>\u0412\u00a0\u044d\u0442\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u0442\u0435\u043a\u0441\u0442\u0430, \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u044d\u043c\u0431\u0435\u0434\u0434\u0438\u043d\u0433\u043e\u0432, \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0438\u0441\u043a, LLM.<\/p>\n<h2>\u0410\u043d\u043d\u043e\u0442\u0430\u0442\u043e\u0440\u044b \u0434\u043b\u044f NER<\/h2>\n<p>\u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445\u00a0\u2014 \u0441\u0430\u043c\u0430\u044f \u0442\u0440\u0443\u0434\u043e\u0437\u0430\u0442\u0440\u0430\u0442\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c NER. \u041a\u00a0\u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0435\u0441\u0442\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b. <\/p>\n<p>\u041c\u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f<a href=\"https:\/\/arunmozhi.in\/ner-annotator\/\" rel=\"noopener noreferrer nofollow\"> NER Annotator<\/a><\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0441\u0442 \u0432\u00a0\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0442\u0438\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u0438\u043f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u00a0JSON \/ IOB<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u0430\u0436\u043d\u044b\u0435 \u043d\u044e\u0430\u043d\u0441\u044b:<\/p>\n<ol>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u00a0\u0431\u044b\u043b \u0440\u0430\u0437\u0431\u0440\u043e\u0441\u0430\u043d \u043d\u0430\u00a0\u0437\u0430\u0434\u0430\u043d\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043b\u043e\u0432\u0430 \u0432\u044b\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u0442\u043e \u0435\u0441\u0442\u044c \u0435\u0441\u043b\u0438 \u0443\u00a0\u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0434\u0432\u0430 \u0441\u043b\u0438\u043f\u0448\u0438\u0445\u0441\u044f \u0441\u043b\u043e\u0432\u0430, \u0442\u043e \u0438\u0445 \u043d\u0435\u043b\u044c\u0437\u044f \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c. \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0430\u043a \u0432\u0430\u0436\u043d\u0430 \u043f\u0440\u0435\u0434\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e\u00a0\u2014 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u0438 \u0432\u044b\u0439\u0442\u0438.<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9e0\/dee\/025\/9e0dee0250f60c2f3262218d94837810.png\" alt=\"\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u0432 NER Annotator\" title=\"\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u0432 NER Annotator\" width=\"1600\" height=\"645\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/9e0\/dee\/025\/9e0dee0250f60c2f3262218d94837810.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9e0\/dee\/025\/9e0dee0250f60c2f3262218d94837810.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u0432\u00a0NER Annotator<\/figcaption><\/div>\n<\/figure>\n<p>\u0415\u0449\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0445 \u0430\u043d\u043d\u043e\u0442\u0430\u0442\u043e\u0440\u043e\u0432:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/labelstud.io\/\" rel=\"noopener noreferrer nofollow\"><strong>Label Studio<\/strong><\/a>\u00a0\u2014 open\u2011source \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/prodi.gy\/\" rel=\"noopener noreferrer nofollow\"><strong>Prodigy<\/strong> <\/a>\u2014 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0439, \u043d\u043e\u00a0\u043e\u0447\u0435\u043d\u044c\u00a0\u0431\u044b\u0441\u0442\u0440\u044b\u0439<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doccano.github.io\/doccano\/\" rel=\"noopener noreferrer nofollow\"><strong>doccano<\/strong> <\/a>\u2014 \u043b\u0435\u0433\u043a\u0438\u0439 \u0432\u0435\u0431\u2011\u0430\u043d\u043d\u043e\u0442\u0430\u0442\u043e\u0440 <\/p>\n<\/li>\n<\/ul>\n<h2>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b spaCy \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 NER<\/h2>\n<p>spaCy \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u0435\u043d \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0435 \u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438\u00a0\u2014 \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0432\u0435\u0449\u044c \u0438\u0437\u00a0\u043a\u043e\u0440\u043e\u0431\u043a\u0438, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043c\u043e \u0437\u0430 30\u00a0\u043c\u0438\u043d\u0443\u0442. <\/p>\n<p>\u0414\u043e\u043a\u0430 \u043f\u043e\u00a0\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 <a href=\"https:\/\/spacy.io\/usage\" rel=\"noopener noreferrer nofollow\">https:\/\/spacy.io\/usage<\/a><\/p>\n<p>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u043f\u043e\u0434\u00a0GPU\/CPU <a href=\"https:\/\/spacy.io\/usage\/training\" rel=\"noopener noreferrer nofollow\">https:\/\/spacy.io\/usage\/training<\/a> <\/p>\n<p>\u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u0443\u0442\u0438, \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u043f\u043e\u0434\u00a0\u0441\u0432\u043e\u0438!<\/p>\n<p>spaCy \u0438\u043c\u0435\u0435\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p><strong>\u041d\u0435\u0442 \u043e\u0446\u0435\u043d\u043a\u0438 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438.<\/strong> \u041d\u0435\u043b\u044c\u0437\u044f \u0443\u0437\u043d\u0430\u0442\u044c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u0432\u0435\u0440\u0435\u043d\u0430 \u0432\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e\u00a0\u0444\u0440\u0430\u0437\u0430\u00a0\u2014 \u044d\u0442\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f. \u0412\u00a0\u043a\u043e\u0440\u043e\u0431\u043a\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0441\u043b\u043e\u0436\u043d\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430. \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u0433\u0434\u0435 \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u0448\u0438\u0431\u0430\u0435\u0442\u0441\u044f, \u0438 \u043d\u0430\u00a0\u043a\u0430\u043a\u0438\u0445 \u0442\u0438\u043f\u0430\u0445 \u0434\u0430\u043d\u043d\u044b\u0445\u00a0\u2014 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441\u00a0\u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u043c\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044f\u043c\u0438,<\/strong> \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u0438\u043d\u043d\u0430\u044f \u0438\u043b\u0438\u00a0\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043f\u043e\u00a0\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0410\u043d\u0430\u043b\u043e\u0433\u0438 spaCy<\/strong><\/p>\n<p><a href=\"https:\/\/medium.com\/ubiai-nlp\/mastering-named-entity-recognition-with-bert-ca8d04b67b18\" rel=\"noopener noreferrer nofollow\">https:\/\/medium.com\/ubiai\u2011nlp\/mastering\u2011named\u2011entity\u2011recognition\u2011with\u2011bert\u2011ca8d04b67b18<\/a>\u00a0\u2014 BERT<\/p>\n<p><a href=\"https:\/\/colab.research.google.com\/github\/NielsRogge\/Transformers-Tutorials\/blob\/master\/BERT\/Custom_Named_Entity_Recognition_with_BERT_only_first_wordpiece.ipynb\" rel=\"noopener noreferrer nofollow\">https:\/\/colab.research.google.com\/github\/NielsRogge\/Transformers\u2011Tutorials\/blob\/master\/BERT\/Custom_Named_Entity_Recognition_with_BERT_only_first_wordpiece.ipynb<\/a>\u00a0\u2014 BERT<\/p>\n<p><a href=\"https:\/\/github.com\/flairNLP\/flair\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/flairNLP\/flair<\/a>\u00a0\u2014 FLAIR<\/p>\n<p><a href=\"https:\/\/stanfordnlp.github.io\/CoreNLP\/ner.html\" rel=\"noopener noreferrer nofollow\">https:\/\/stanfordnlp.github.io\/CoreNLP\/ner.html<\/a>\u00a0\u2014 StanfordCoreNLP<\/p>\n<h2>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u0431\u0443\u0447\u0438\u043c \u0441\u0432\u043e\u044e \u043f\u0435\u0440\u0432\u0443\u044e NER-\u043c\u043e\u0434\u0435\u043b\u044c<\/h2>\n<h4>\u041e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 NER \u0438\u0437 spaCy<\/h4>\n<p>E\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043b\u0438\u0431\u044b:  <\/p>\n<pre><code class=\"python\">!pip install -U pip setuptools wheel !pip install -U 'spacy[cuda11x,transformers,lookups]' !python3 -m spacy download ru_core_news_lg   import spacy from spacy.tokens import DocBin from tqdm import tqdm import json    cv_data = json.load(open('path to your json','r'))<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043d \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 &#8212; \u0441\u043e\u0437\u0434\u0430\u0435\u043c (\u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u043e\u043d \u0443\u0436\u0435 \u0435\u0441\u0442\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u043e\u0442 \u043f\u0443\u043d\u043a\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c):<\/p>\n<pre><code class=\"python\">!python3 -m spacy init fill-config \/home\/alex\/ner\/base_config.cfg \/home\/alex\/ner\/config.cfg<\/code><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 spaCy:<\/p>\n<pre><code class=\"python\"># Define a function to create spaCy DocBin objects from the annotated data def get_spacy_doc(file, data):   # Create a blank spaCy pipeline   nlp = spacy.blank('ru')   db = DocBin()    # Iterate through the data   for text, annot in tqdm(data):     doc = nlp.make_doc(text)     annot = annot['entities']     print(annot)     ents = []     entity_indices = []      # Extract entities from the annotations     for start, end, label in annot:       skip_entity = False       for idx in range(start, end):         if idx in entity_indices:           skip_entity = True           break       if skip_entity:         continue        entity_indices = entity_indices + list(range(start, end))       try:         span = doc.char_span(start, end, label=label, alignment_mode='strict')       except:         continue        if span is None:         # Log errors for annotations that couldn't be processed         err_data = str([start, end]) + \"    \" + str(text) + \"\\n\"         file.write(err_data)       else:         ents.append(span)      try:       doc.ents = ents       db.add(doc)     except:       pass    return db<\/code><\/pre>\n<p>\u0414\u0435\u043b\u0438\u043c \u0434\u0430\u0442\u0430\u0441\u0435\u0442 \u043d\u0430 \u0442\u0440\u0435\u0438\u043d \u0438 \u0442\u0435\u0441\u0442 80\/20:<\/p>\n<pre><code class=\"python\">from sklearn.model_selection import train_test_split train, test = train_test_split(cv_data, test_size=0.2)<\/code><\/pre>\n<p>\u0418\u0437\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043e\u0442 \u043f\u0443\u0441\u0442\u044b\u0445 \u0441\u0442\u0440\u043e\u043a:<\/p>\n<pre><code class=\"python\">train = [x for x in train if x is not None] test = [x for x in test if x is not None] file = open('\/home\/alex\/ner\/train_file.txt','w')<\/code><\/pre>\n<p>C\u043e\u0437\u0434\u0430\u0435\u043c spaCy DocBin \u043e\u0431\u044a\u0435\u043a\u0442 \u0434\u043b\u044f \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043e\u0447\u043d\u043e\u0433\u043e \u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0430:<\/p>\n<pre><code class=\"python\">db = get_spacy_doc(file, train) db.to_disk('\/home\/alex\/ner\/trained_models\/train_data.spacy')  db = get_spacy_doc(file, test) db.to_disk('\/home\/Ageev\/ner\/trained_models\/test_data.spacy')  # Close the error log file file.close()<\/code><\/pre>\n<p>\u041e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043d\u0444\u0438\u0433, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0435\u0441\u0442\u043e \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0431\u0435\u0440\u0435\u043c \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0438 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u044b, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u0435\u0435:<\/p>\n<pre><code class=\"python\">!python3 -m spacy train \/home\/Ageev\/ner\/config.cfg  --output \/home\/Ageev\/ner\/trained_models\/dir  --paths.train \/home\/Ageev\/ner\/trained_models\/train_data.spacy  --paths.dev \/home\/Ageev\/ner\/trained_models\/test_data.spacy --gpu-id 0<\/code><\/pre>\n<h4>\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435?<\/h4>\n<p>\u041e\u0446\u0435\u043d\u0438\u0442\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u043d\u0430\u0431\u043e\u0440\u0435, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u2014 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u0435 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443. \u041f\u0440\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443 \u0441 \u043c\u0435\u0442\u0440\u0438\u043a\u0430\u043c\u0438:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b41\/e75\/6a9\/b41e756a98499c9cd625545731586d18.png\" width=\"693\" height=\"549\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/b41\/e75\/6a9\/b41e756a98499c9cd625545731586d18.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b41\/e75\/6a9\/b41e756a98499c9cd625545731586d18.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u2014 \u0434\u0435\u0431\u0430\u0433\u0433\u0435\u0440:<\/p>\n<pre><code class=\"python\">!python3 -m spacy debug data \/home\/alex\/ner\/config.cfg --paths.train \/home\/Ageev\/ner\/trained_models\/train_data.spacy  --paths.dev \/home\/Ageev\/ner\/trained_models\/test_data.spacy<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043c\u043e\u0434\u0435\u043b\u0438:<\/p>\n<pre><code class=\"python\">text =\u201d\u0442\u0443\u0442 \u0412\u0410\u0428 \u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0412\u0410\u0428\u0415\u0419 \u043c\u043e\u0434\u0435\u043b\u0438\u201d    import spacy  # Load the trained spaCy NER model from the specified path nlp = spacy.load('\/home\/alex\/ner\/model-last')  # # \/home\/Ageev\/ner\/trained_models\/15000epochs\/model-last doc = nlp(text)  # Iterate through the named entities (entities) recognized by the model for ent in doc.ents:   # Print the recognized text and its corresponding label   print(ent.text, \"  -&gt;&gt;&gt;&gt;  \", ent.label_)<\/code><\/pre>\n<h4>\u041f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430<\/h4>\n<p>\u041f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u0431\u0443\u0434\u0435\u0442 \u0441\u0432\u043e\u044f. \u0412\u0430\u0436\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c \u0431\u0438\u0437\u043d\u0435\u0441-\u0446\u0435\u043b\u044c, \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0438 \u0433\u0434\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0435\u043b\u044c. \u041f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439:<\/p>\n<ol>\n<li>\n<p>\u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u043c\u0443\u0441\u043e\u0440\u0430 (\u043b\u0438\u0448\u043d\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u0446\u0438\u0444\u0440\u044b \u0438 \u0442\u0434).<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u043e\u0431\u0440\u0435\u0437\u043a\u0430 \u0433\u0440\u0430\u043d\u0438\u0446 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u0432 \u0434\u043e \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u043e\u0440\u043c (\u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u0442 \u0436\u0435 GPT \u0438\u043b\u0438 LLM).<\/p>\n<\/li>\n<li>\n<p>\u041d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043a \u0441\u0442\u0440\u043e\u0447\u043d\u044b\u043c \u0431\u0443\u043a\u0432\u0430\u043c).<\/p>\n<\/li>\n<li>\n<p>\u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u043e \u0434\u043b\u0438\u043d\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u043e\u0432.<\/p>\n<\/li>\n<\/ol>\n<hr\/>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0432\u0441\u0435\u043c, \u043a\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b \u0434\u043e \u043a\u043e\u043d\u0446\u0430. \u041f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u044e \u0432\u0441\u0435\u0445 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u0432, \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0445\u0441\u044f AI \u0438 ML, \u0432 \u043c\u043e\u0439<a href=\"http:\/\/t.me\/alex_path_ai\" rel=\"noopener noreferrer nofollow\"> \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u043a\u0430\u043d\u0430\u043b<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/articles\/921698\/\"> https:\/\/habr.com\/ru\/articles\/921698\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u043e NER \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043d\u0435\u043c\u0430\u043b\u043e, \u043d\u043e \u044d\u0442\u043e\u0442 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043d\u043e\u0441\u0438\u0442 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u043e\u0439 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440. \u0421\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u0430 \u0442\u0435\u043c, \u043a\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442\u0441\u044f NLP \u0438 \u0438\u0449\u0435\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0443\u0437\u043a\u043e\u043f\u0440\u043e\u0444\u0438\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447, \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0438\u0445 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439 \u0438\u0437 \u0442\u0435\u043a\u0441\u0442\u0430.<\/p>\n<p>\u0414\u043b\u044f \u0434\u0436\u0443\u043d\u043e\u0432 \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0439\u0442\u0438 \u0432\u0435\u0441\u044c \u043f\u0443\u0442\u044c \u2014 \u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0439 NER-\u043c\u043e\u0434\u0435\u043b\u0438, \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f.<\/p>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u043c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440 \u0410\u0433\u0435\u0435\u0432, \u043d\u0430 \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0438 \u0433\u043e\u0434\u0430 \u044f \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u0441\u044f NER-\u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438 \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439 \u043d\u0430 \u044d\u0442\u0438\u043a\u0435\u0442\u043a\u0430\u0445 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u043f\u0438\u0442\u0430\u043d\u0438\u044f. \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u043c\u043e\u044e \u043b\u044e\u0431\u043e\u0432\u044c \u043a NER, \u0443 \u044d\u0442\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0438 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u2014 \u043a\u0435\u0439\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d\u0430 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0440\u0435\u0448\u0438\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0434\u0430\u043c \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e\u0441\u0442\u0438 NER \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0437\u0430\u0434\u0430\u0447.<\/p>\n<figure class=\"full-width\"><\/figure>\n<h2>\u041a\u0440\u0430\u0442\u043a\u0438\u0439 \u044d\u043a\u0441\u043a\u0443\u0440\u0441<\/h2>\n<p><strong>Named Entity Recognition (NER) <\/strong>\u2014 \u044d\u0442\u043e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439 \u0438\u0437\u00a0\u0442\u0435\u043a\u0441\u0442\u0430: \u0437\u043d\u0430\u0447\u0438\u043c\u044b\u0445 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u0440\u043e\u0434\u0435 \u0438\u043c\u0435\u043d, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0439, \u0433\u043e\u0440\u043e\u0434\u043e\u0432, \u0434\u0430\u0442, \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u0438\u0445 \u043a\u043e\u0434\u043e\u0432 \u0438\u00a0\u0442.\u00a0\u0434.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: \u00ab\u0418\u043b\u043e\u043d \u041c\u0430\u0441\u043a \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043b \u0437\u0430\u043f\u0443\u0441\u043a Starship \u0432\u00a0\u0422\u0435\u0445\u0430\u0441\u0435 \u0432\u0435\u0441\u043d\u043e\u0439 2025\u00a0\u0433\u043e\u0434\u0430\u00bb.<\/p>\n<p>NER \u0432\u044b\u0434\u0435\u043b\u0438\u0442:<\/p>\n<ul>\n<li>\n<p>\u0418\u043b\u043e\u043d \u041c\u0430\u0441\u043a \u2192 \u043f\u0435\u0440\u0441\u043e\u043d\u0430 (PER)<\/p>\n<\/li>\n<li>\n<p>Starship \u2192 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \/ \u043f\u0440\u043e\u0435\u043a\u0442 (PRODUCT)<\/p>\n<\/li>\n<li>\n<p>\u0422\u0435\u0445\u0430\u0441 \u2192 \u0433\u0435\u043e (LOC)<\/p>\n<\/li>\n<li>\n<p>\u0432\u0435\u0441\u043d\u0430 2025\u00a0\u0433\u043e\u0434\u0430 \u2192 \u0434\u0430\u0442\u0430 (DATA)<\/p>\n<\/li>\n<\/ul>\n<p>NER \u0448\u0438\u0440\u043e\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432:<\/p>\n<ul>\n<li>\n<p>\u0431\u0430\u043d\u043a\u0430\u0445 \u0438 \u0441\u0442\u0440\u0430\u0445\u043e\u0432\u044b\u0445 \u0434\u043b\u044f\u00a0\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439, \u0418\u041d\u041d, \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u0441\u0443\u043c\u043c, \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u044e\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0445 \u0434\u043b\u044f\u00a0\u043f\u043e\u0438\u0441\u043a\u0430 \u0434\u0430\u0442, \u043d\u043e\u043c\u0435\u0440\u043e\u0432 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u043e\u0432, \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0447\u0430\u0442\u2011\u0431\u043e\u0442\u0430\u0445 \u0438 \u0442\u0435\u0445\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 \u0434\u043b\u044f\u00a0\u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u043d, \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432, \u0437\u0430\u044f\u0432\u043e\u043a, \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0435\u00a0\u2014 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u0442 \u043a\u043e\u0434\u044b \u0434\u0438\u0430\u0433\u043d\u043e\u0437\u043e\u0432, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u043f\u0430\u0440\u0430\u0442\u043e\u0432, \u0434\u0430\u0442\u044b \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440;<\/p>\n<\/li>\n<li>\n<p>\u043b\u043e\u0433\u0438\u0441\u0442\u0438\u043a\u0435: \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u043d\u043e\u043c\u0435\u0440\u043e\u0432 \u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0445, \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u0435\u0439, \u0433\u0440\u0443\u0437\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0432\u0443\u0447\u0438\u0442 \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u043e\u00a0\u0437\u0430\u00a0\u044d\u0442\u0438\u043c \u0441\u0442\u043e\u0438\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0438\u044f.<\/p>\n<p>\u041d\u0430\u00a0\u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441\u00a0\u0440\u044f\u0434\u043e\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u0435\u0442\u00a0\u0431\u044b\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441\u00a0\u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439\u00a0\u2014 \u041e\u041e\u041e \u00ab\u041c\u043e\u0441\u043a\u0432\u0430\u00bb. \u0422\u0430\u043a\u0436\u0435 \u043e\u0434\u043d\u043e \u0441\u043b\u043e\u0432\u043e\u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0435 \u043f\u043e\u0440\u043e\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u00a0\u0441\u0435\u0431\u0435 \u0434\u0432\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438\u00a0\u2014 \u044d\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435\u00a0\u0440\u0435\u0448\u0430\u0435\u043c\u0430 \u0432\u00a0\u0440\u0430\u043c\u043a\u0430\u0445 spaCy, \u0442\u0430\u043a \u043a\u0430\u043a\u00a0\u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u043d\u0435\u00a0\u043c\u043e\u0433\u0443\u0442 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0440\u0443\u0433 \u043d\u0430\u00a0\u0434\u0440\u0443\u0433\u0430 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u043a\u00a0\u0434\u0432\u0443\u043c \u0440\u0430\u0437\u043d\u044b\u043c \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043c. \u041d\u0435\u0440\u0435\u0434\u043a\u0438 \u0441\u043b\u0443\u0447\u0430\u0438 \u0441\u043b\u0438\u043f\u0430\u043d\u0438\u044f \u0441\u043b\u043e\u0432 \u0434\u0440\u0443\u0433 \u0441\u00a0\u0434\u0440\u0443\u0433\u043e\u043c \u0438\u043b\u0438\u00a0\u0441\u00a0\u043f\u0440\u0435\u0434\u043b\u043e\u0433\u0430\u043c\u0438 (\u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0438\u043d\u0433\u043e\u043c). \u0418, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043f\u0430\u0434\u0430\u0442\u044c \u0438\u0437\u00a0\u043c\u043d\u043e\u0433\u043e\u0448\u0443\u043c\u043e\u0432\u044b\u0445 \u043a\u0430\u043d\u0430\u043b\u043e\u0432, \u0442\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e: <em>\u00ab\u041a\u043b\u0438\u0435\u043d\u0442 \u041e\u041e\u041e \u0410\u043b\u044c\u0444\u0430\u0411\u0438\u0437\u043d\u0435\u0441\u0421\u043d\u0430\u0431 \u043f\u0440\u0438\u0441\u043b\u0430\u043b \u0441\u0447\u0435\u0442 \u0438\u0437\u00a0\u041f\u0438\u0442\u0435\u0440\u0430. \u041d\u0435\u00a0\u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e\u00a0\u044e\u0440.\u00a0\u043b\u0438\u0446\u043e \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e, \u0443\u0442\u043e\u0447\u043d\u0438\u0442\u044c \u043f\u043e\u00a0\u0418\u041d\u041d 7\u00a0812\u00a0345\u00a0678\u00bb<\/em>\u00a0\u2014 \u0442\u0443\u0442 \u0438 \u0441\u043b\u0438\u0442\u043d\u044b\u0435 \u0441\u043b\u043e\u0432\u0430, \u0438 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u043a\u0430\u0432\u044b\u0447\u043a\u0438, \u0438 \u043e\u0431\u0440\u044b\u0432\u043a\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439.<\/p>\n<h2>\u041d\u0430 \u0447\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u0430\u043d NER<\/h2>\n<p>\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 NER \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u043b\u0441\u044f \u0432\u00a0\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0430\u043f\u043e\u0432:<\/p>\n<ol>\n<li>\n<p><strong>\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0438 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/strong><\/p>\n<ul>\n<li>\n<p>\u0411\u044b\u0441\u0442\u0440\u043e, \u0434\u0435\u0448\u0435\u0432\u043e, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f\u00a0\u0441\u0442\u0440\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439: email&#8217;\u043e\u0432, \u043d\u043e\u043c\u0435\u0440\u043e\u0432 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432, \u043f\u0430\u0441\u043f\u043e\u0440\u0442\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435<\/strong><\/p>\n<ul>\n<li>\n<p>Conditional Random Fields, SVM.<\/p>\n<\/li>\n<li>\n<p>\u0422\u0440\u0435\u0431\u0443\u044e\u0442 \u0440\u0443\u0447\u043d\u043e\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0438\u0438 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432 (features), \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0438.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0413\u043b\u0443\u0431\u043e\u043a\u043e\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435<\/strong><\/p>\n<ul>\n<li>\n<p>BiLSTM\u2011CRF, Transformer\u2011\u043c\u043e\u0434\u0435\u043b\u0438 (BERT \u0438 \u043f\u0440.)<\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u0435\u0442 \u043b\u0443\u0447\u0448\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u00a0\u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0438 \u043d\u0430\u00a0\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043e\u0431\u044a\u0435\u043c\u0430\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u044d\u0442\u0430\u043f\u043e\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 LLM. \u041d\u043e\u00a0\u0432\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\u0437\u00a0\u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0437\u043e\u043b\u043e\u0442\u0430\u044f \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0430\u00a0\u2014 \u0447\u0442\u043e\u2011\u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0438, \u043d\u043e\u00a0\u043d\u0435\u00a0\u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0435\u0435 GPU. \u0418\u043c\u0435\u043d\u043d\u043e \u0437\u0434\u0435\u0441\u044c \u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043d\u0430\u00a0\u043f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u043d\u044b\u0439 NER \u043d\u0430\u00a0CPU.<\/p>\n<h2>\u041a\u043e\u0433\u0434\u0430 NER \u2014 \u0445\u043e\u0440\u043e\u0448\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c NER \u0441\u0442\u043e\u0438\u0442, \u0435\u0441\u043b\u0438:<\/p>\n<ul>\n<li>\n<p>\u0443\u00a0\u0432\u0430\u0441 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0438\u043b\u0438\u00a0\u043f\u043e\u043b\u0443\u0444\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 (\u043d\u043e\u0432\u043e\u0441\u0442\u0438, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b, \u0441\u043e\u0446\u0441\u0435\u0442\u0438),<\/p>\n<\/li>\n<li>\n<p>\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u044c \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u0432\u0440\u043e\u0434\u0435 \u0438\u043c\u0435\u043d \u043b\u044e\u0434\u0435\u0439, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439, \u0434\u0430\u0442, \u043b\u043e\u043a\u0430\u0446\u0438\u0439,<\/p>\n<\/li>\n<li>\n<p>\u0432\u044b \u043d\u0435\u00a0\u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u043b\u0438\u00a0\u043d\u0435\u00a0\u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438,<\/p>\n<\/li>\n<li>\n<p>\u043d\u0443\u0436\u043d\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0435\u00a0\u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u00a0CPU,<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u0443\u044e LLM.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e\u00a0\u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e\u0441\u0442\u044c\u00a0\u2014 \u0440\u0430\u0437\u043c\u0435\u0442\u044c\u0442\u0435 \u0434\u043e <strong>100\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430<\/strong>, \u0438 \u0443\u0436\u0435 \u0441\u0442\u0430\u043d\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043c\u043e\u0436\u043d\u043e\u00a0\u043b\u0438 \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u043b\u0438\u00a0\u043d\u0435\u0442.<\/p>\n<h2>\u041a\u043e\u0433\u0434\u0430 NER \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442<\/h2>\n<p>NER\u2011\u043c\u043e\u0434\u0435\u043b\u0438, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043d\u0430\u00a0\u0431\u0430\u0437\u0435 spaCy \u0438\u043b\u0438\u00a0\u0434\u0440\u0443\u0433\u0438\u0445 \u043b\u0435\u0433\u043a\u043e\u0432\u0435\u0441\u043d\u044b\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432, \u043f\u043b\u043e\u0445\u043e \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441<strong> <\/strong>\u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u0441\u00a0\u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u0434\u043b\u0438\u043d\u043d\u044b\u043c \u0445\u0432\u043e\u0441\u0442\u043e\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f\u043c\u0438 \u0438\u043b\u0438\u00a0\u0446\u0435\u043b\u044b\u043c\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<p>\u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u00a0\u2014 \u043d\u0435\u0442 \u044f\u0440\u043a\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432, \u043d\u0435\u0442 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c\u043e\u0441\u0442\u0438, \u043d\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u043b\u044f\u00a0\u043e\u0431\u043e\u0431\u0449\u0435\u043d\u0438\u044f. \u041c\u043e\u0434\u0435\u043b\u044c \u043d\u0435\u00a0\u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442, \u0447\u0442\u043e\u00a0\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u044d\u0442\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u00a0\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u043c \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0435.<\/p>\n<p>\u0412\u00a0\u044d\u0442\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u0442\u0435\u043a\u0441\u0442\u0430, \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u044d\u043c\u0431\u0435\u0434\u0434\u0438\u043d\u0433\u043e\u0432, \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0438\u0441\u043a, LLM.<\/p>\n<h2>\u0410\u043d\u043d\u043e\u0442\u0430\u0442\u043e\u0440\u044b \u0434\u043b\u044f NER<\/h2>\n<p>\u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445\u00a0\u2014 \u0441\u0430\u043c\u0430\u044f \u0442\u0440\u0443\u0434\u043e\u0437\u0430\u0442\u0440\u0430\u0442\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c NER. \u041a\u00a0\u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0435\u0441\u0442\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b. <\/p>\n<p>\u041c\u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f<a href=\"https:\/\/arunmozhi.in\/ner-annotator\/\" rel=\"noopener noreferrer nofollow\"> NER Annotator<\/a><\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0441\u0442 \u0432\u00a0\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0442\u0438\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u0438\u043f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u00a0JSON \/ IOB<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u0430\u0436\u043d\u044b\u0435 \u043d\u044e\u0430\u043d\u0441\u044b:<\/p>\n<ol>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u00a0\u0431\u044b\u043b \u0440\u0430\u0437\u0431\u0440\u043e\u0441\u0430\u043d \u043d\u0430\u00a0\u0437\u0430\u0434\u0430\u043d\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043b\u043e\u0432\u0430 \u0432\u044b\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u0442\u043e \u0435\u0441\u0442\u044c \u0435\u0441\u043b\u0438 \u0443\u00a0\u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0434\u0432\u0430 \u0441\u043b\u0438\u043f\u0448\u0438\u0445\u0441\u044f \u0441\u043b\u043e\u0432\u0430, \u0442\u043e \u0438\u0445 \u043d\u0435\u043b\u044c\u0437\u044f \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c. \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0430\u043a \u0432\u0430\u0436\u043d\u0430 \u043f\u0440\u0435\u0434\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e\u00a0\u2014 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u0438 \u0432\u044b\u0439\u0442\u0438.<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\">\n<div><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u0432\u00a0NER Annotator<\/figcaption><\/div>\n<\/figure>\n<p>\u0415\u0449\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0445 \u0430\u043d\u043d\u043e\u0442\u0430\u0442\u043e\u0440\u043e\u0432:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/labelstud.io\/\" rel=\"noopener noreferrer nofollow\"><strong>Label Studio<\/strong><\/a>\u00a0\u2014 open\u2011source \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/prodi.gy\/\" rel=\"noopener noreferrer nofollow\"><strong>Prodigy<\/strong> <\/a>\u2014 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0439, \u043d\u043e\u00a0\u043e\u0447\u0435\u043d\u044c\u00a0\u0431\u044b\u0441\u0442\u0440\u044b\u0439<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doccano.github.io\/doccano\/\" rel=\"noopener noreferrer nofollow\"><strong>doccano<\/strong> <\/a>\u2014 \u043b\u0435\u0433\u043a\u0438\u0439 \u0432\u0435\u0431\u2011\u0430\u043d\u043d\u043e\u0442\u0430\u0442\u043e\u0440 <\/p>\n<\/li>\n<\/ul>\n<h2>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b spaCy \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 NER<\/h2>\n<p>spaCy \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u0435\u043d \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0435 \u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438\u00a0\u2014 \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0432\u0435\u0449\u044c \u0438\u0437\u00a0\u043a\u043e\u0440\u043e\u0431\u043a\u0438, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043c\u043e \u0437\u0430 30\u00a0\u043c\u0438\u043d\u0443\u0442. <\/p>\n<p>\u0414\u043e\u043a\u0430 \u043f\u043e\u00a0\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 <a href=\"https:\/\/spacy.io\/usage\" rel=\"noopener noreferrer nofollow\">https:\/\/spacy.io\/usage<\/a><\/p>\n<p>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u043f\u043e\u0434\u00a0GPU\/CPU <a href=\"https:\/\/spacy.io\/usage\/training\" rel=\"noopener noreferrer nofollow\">https:\/\/spacy.io\/usage\/training<\/a> <\/p>\n<p>\u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u0443\u0442\u0438, \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u043f\u043e\u0434\u00a0\u0441\u0432\u043e\u0438!<\/p>\n<p>spaCy \u0438\u043c\u0435\u0435\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p><strong>\u041d\u0435\u0442 \u043e\u0446\u0435\u043d\u043a\u0438 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438.<\/strong> \u041d\u0435\u043b\u044c\u0437\u044f \u0443\u0437\u043d\u0430\u0442\u044c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u0432\u0435\u0440\u0435\u043d\u0430 \u0432\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e\u00a0\u0444\u0440\u0430\u0437\u0430\u00a0\u2014 \u044d\u0442\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f. \u0412\u00a0\u043a\u043e\u0440\u043e\u0431\u043a\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0441\u043b\u043e\u0436\u043d\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430. \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u0433\u0434\u0435 \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u0448\u0438\u0431\u0430\u0435\u0442\u0441\u044f, \u0438 \u043d\u0430\u00a0\u043a\u0430\u043a\u0438\u0445 \u0442\u0438\u043f\u0430\u0445 \u0434\u0430\u043d\u043d\u044b\u0445\u00a0\u2014 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441\u00a0\u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u043c\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044f\u043c\u0438,<\/strong> \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u0438\u043d\u043d\u0430\u044f \u0438\u043b\u0438\u00a0\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043f\u043e\u00a0\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0410\u043d\u0430\u043b\u043e\u0433\u0438 spaCy<\/strong><\/p>\n<p><a href=\"https:\/\/medium.com\/ubiai-nlp\/mastering-named-entity-recognition-with-bert-ca8d04b67b18\" rel=\"noopener noreferrer nofollow\">https:\/\/medium.com\/ubiai\u2011nlp\/mastering\u2011named\u2011entity\u2011recognition\u2011with\u2011bert\u2011ca8d04b67b18<\/a>\u00a0\u2014 BERT<\/p>\n<p><a href=\"https:\/\/colab.research.google.com\/github\/NielsRogge\/Transformers-Tutorials\/blob\/master\/BERT\/Custom_Named_Entity_Recognition_with_BERT_only_first_wordpiece.ipynb\" rel=\"noopener noreferrer nofollow\">https:\/\/colab.research.google.com\/github\/NielsRogge\/Transformers\u2011Tutorials\/blob\/master\/BERT\/Custom_Named_Entity_Recognition_with_BERT_only_first_wordpiece.ipynb<\/a>\u00a0\u2014 BERT<\/p>\n<p><a href=\"https:\/\/github.com\/flairNLP\/flair\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/flairNLP\/flair<\/a>\u00a0\u2014 FLAIR<\/p>\n<p><a href=\"https:\/\/stanfordnlp.github.io\/CoreNLP\/ner.html\" rel=\"noopener noreferrer nofollow\">https:\/\/stanfordnlp.github.io\/CoreNLP\/ner.html<\/a>\u00a0\u2014 StanfordCoreNLP<\/p>\n<h2>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u0431\u0443\u0447\u0438\u043c \u0441\u0432\u043e\u044e \u043f\u0435\u0440\u0432\u0443\u044e NER-\u043c\u043e\u0434\u0435\u043b\u044c<\/h2>\n<h4>\u041e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 NER \u0438\u0437 spaCy<\/h4>\n<p>E\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043b\u0438\u0431\u044b:  <\/p>\n<pre><code class=\"python\">!pip install -U pip setuptools wheel !pip install -U 'spacy[cuda11x,transformers,lookups]' !python3 -m spacy download ru_core_news_lg   import spacy from spacy.tokens import DocBin from tqdm import tqdm import json    cv_data = json.load(open('path to your json','r'))<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043d \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 &#8212; \u0441\u043e\u0437\u0434\u0430\u0435\u043c (\u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u043e\u043d \u0443\u0436\u0435 \u0435\u0441\u0442\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u043e\u0442 \u043f\u0443\u043d\u043a\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c):<\/p>\n<pre><code class=\"python\">!python3 -m spacy init fill-config \/home\/alex\/ner\/base_config.cfg \/home\/alex\/ner\/config.cfg<\/code><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 spaCy:<\/p>\n<pre><code class=\"python\"># Define a function to create spaCy DocBin objects from the annotated data def get_spacy_doc(file, data):   # Create a blank spaCy pipeline   nlp = spacy.blank('ru')   db = DocBin()    # Iterate through the data   for text, annot in tqdm(data):     doc = nlp.make_doc(text)     annot = annot['entities']     print(annot)     ents = []     entity_indices = []      # Extract entities from the annotations     for start, end, label in annot:       skip_entity = False       for idx in range(start, end):         if idx in entity_indices:           skip_entity = True           break       if skip_entity:         continue        entity_indices = entity_indices + list(range(start, end))       try:         span = doc.char_span(start, end, label=label, alignment_mode='strict')       except:         continue        if span is None:         # Log errors for annotations that couldn't be processed         err_data = str([start, end]) + \"    \" + str(text) + \"\\n\"         file.write(err_data)       else:         ents.append(span)      try:       doc.ents = ents       db.add(doc)     except:       pass    return db<\/code><\/pre>\n<p>\u0414\u0435\u043b\u0438\u043c \u0434\u0430\u0442\u0430\u0441\u0435\u0442 \u043d\u0430 \u0442\u0440\u0435\u0438\u043d \u0438 \u0442\u0435\u0441\u0442 80\/20:<\/p>\n<pre><code class=\"python\">from sklearn.model_selection import train_test_split train, test = train_test_split(cv_data, test_size=0.2)<\/code><\/pre>\n<p>\u0418\u0437\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043e\u0442 \u043f\u0443\u0441\u0442\u044b\u0445 \u0441\u0442\u0440\u043e\u043a:<\/p>\n<pre><code class=\"python\">train = [x for x in train if x is not None] test = [x for x in test if x is not None] file = open('\/home\/alex\/ner\/train_file.txt','w')<\/code><\/pre>\n<p>C\u043e\u0437\u0434\u0430\u0435\u043c spaCy DocBin \u043e\u0431\u044a\u0435\u043a\u0442 \u0434\u043b\u044f \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043e\u0447\u043d\u043e\u0433\u043e \u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0430:<\/p>\n<pre><code class=\"python\">db = get_spacy_doc(file, train) db.to_disk('\/home\/alex\/ner\/trained_models\/train_data.spacy')  db = get_spacy_doc(file, test) db.to_disk('\/home\/Ageev\/ner\/trained_models\/test_data.spacy')  # Close the error log file file.close()<\/code><\/pre>\n<p>\u041e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043d\u0444\u0438\u0433, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0435\u0441\u0442\u043e \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0431\u0435\u0440\u0435\u043c \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0438 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u044b, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u0435\u0435:<\/p>\n<pre><code class=\"python\">!python3 -m spacy train \/home\/Ageev\/ner\/config.cfg  --output \/home\/Ageev\/ner\/trained_models\/dir  --paths.train \/home\/Ageev\/ner\/trained_models\/train_data.spacy  --paths.dev \/home\/Ageev\/ner\/trained_models\/test_data.spacy --gpu-id 0<\/code><\/pre>\n<h4>\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435?<\/h4>\n<p>\u041e\u0446\u0435\u043d\u0438\u0442\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u043d\u0430\u0431\u043e\u0440\u0435, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u2014 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u0435 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443. \u041f\u0440\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443 \u0441 \u043c\u0435\u0442\u0440\u0438\u043a\u0430\u043c\u0438:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u2014 \u0434\u0435\u0431\u0430\u0433\u0433\u0435\u0440:<\/p>\n<pre><code class=\"python\">!python3 -m spacy debug data \/home\/alex\/ner\/config.cfg --paths.train \/home\/Ageev\/ner\/trained_models\/train_data.spacy  --paths.dev \/home\/Ageev\/ner\/trained_models\/test_data.spacy<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043c\u043e\u0434\u0435\u043b\u0438:<\/p>\n<pre><code class=\"python\">text =\u201d\u0442\u0443\u0442 \u0412\u0410\u0428 \u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0412\u0410\u0428\u0415\u0419 \u043c\u043e\u0434\u0435\u043b\u0438\u201d    import spacy  # Load the trained spaCy NER model from the specified path nlp = spacy.load('\/home\/alex\/ner\/model-last')  # # \/home\/Ageev\/ner\/trained_models\/15000epochs\/model-last doc = nlp(text)  # Iterate through the named entities (entities) recognized by the model for ent in doc.ents:   # Print the recognized text and its corresponding label   print(ent.text, \"  -&gt;&gt;&gt;&gt;  \", ent.label_)<\/code><\/pre>\n<h4>\u041f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430<\/h4>\n<p>\u041f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u0431\u0443\u0434\u0435\u0442 \u0441\u0432\u043e\u044f. \u0412\u0430\u0436\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c \u0431\u0438\u0437\u043d\u0435\u0441-\u0446\u0435\u043b\u044c, \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0438 \u0433\u0434\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0435\u043b\u044c. \u041f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439:<\/p>\n<ol>\n<li>\n<p>\u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u043c\u0443\u0441\u043e\u0440\u0430 (\u043b\u0438\u0448\u043d\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u0446\u0438\u0444\u0440\u044b \u0438 \u0442\u0434).<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u043e\u0431\u0440\u0435\u0437\u043a\u0430 \u0433\u0440\u0430\u043d\u0438\u0446 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u0432 \u0434\u043e \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u043e\u0440\u043c (\u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u0442 \u0436\u0435 GPT \u0438\u043b\u0438 LLM).<\/p>\n<\/li>\n<li>\n<p>\u041d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043a \u0441\u0442\u0440\u043e\u0447\u043d\u044b\u043c \u0431\u0443\u043a\u0432\u0430\u043c).<\/p>\n<\/li>\n<li>\n<p>\u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u043e \u0434\u043b\u0438\u043d\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u043e\u0432.<\/p>\n<\/li>\n<\/ol>\n<hr\/>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0432\u0441\u0435\u043c, \u043a\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b \u0434\u043e \u043a\u043e\u043d\u0446\u0430. \u041f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u044e \u0432\u0441\u0435\u0445 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u0432, \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0445\u0441\u044f AI \u0438 ML, \u0432 \u043c\u043e\u0439<a href=\"http:\/\/t.me\/alex_path_ai\" rel=\"noopener noreferrer nofollow\"> \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u043a\u0430\u043d\u0430\u043b<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/><\/br><\/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-464564","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/464564","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=464564"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/464564\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=464564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=464564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=464564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}