{"id":479194,"date":"2026-05-10T08:16:07","date_gmt":"2026-05-10T08:16:07","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=479194"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=479194","title":{"rendered":"\u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u0435\u043a\u0441\u0442 \u043e\u0442 LLM \u0443\u0437\u043d\u0430\u0451\u0442\u0441\u044f \u0437\u0430 \u043f\u044f\u0442\u044c \u0441\u0435\u043a\u0443\u043d\u0434: \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e \u0441\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043c\u0430\u0440\u043a\u0435\u0440\u044b \u0447\u0435\u0440\u0435\u0437 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u043c\u043e\u0434\u0435\u043b\u0435\u0439"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0430 \u0442\u043e, \u043f\u043e\u0447\u0435\u043c\u0443 GPT, Claude \u0438 Gemini \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442 \u043f\u043e\u0445\u043e\u0436\u0438\u0439 \u00ab\u0441\u0440\u0435\u0434\u043d\u0438\u0439\u00bb \u0442\u0435\u043a\u0441\u0442, \u0438 \u043a\u0430\u043a \u0441 \u044d\u0442\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0435<\/h3>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u0435\u043c LLM \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d \u2014 \u0431\u0443\u0434\u044c \u0442\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0439 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0442\u0435\u0445\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0438\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u2014 \u0440\u0430\u043d\u043e \u0438\u043b\u0438 \u043f\u043e\u0437\u0434\u043d\u043e \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u0441 \u043e\u0434\u043d\u043e\u0439 \u0438 \u0442\u043e\u0439 \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439. \u0422\u0435\u043a\u0441\u0442 \u043c\u043e\u0434\u0435\u043b\u0438 \u0447\u0438\u0442\u0430\u0435\u043c. \u0413\u0440\u0430\u043c\u043e\u0442\u0435\u043d. \u0418 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0435\u0433\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0430 \u043c\u043e\u0434\u0435\u043b\u044c. \u0417\u0430\u043a\u0430\u0437\u0447\u0438\u043a \u0436\u0430\u043b\u0443\u0435\u0442\u0441\u044f, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043e\u0442\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043e\u0442 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438, \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043f\u0438\u0448\u0443\u0442 \u00ab\u043e\u043f\u044f\u0442\u044c \u0432\u0430\u0448 \u0447\u0430\u0442-\u0431\u043e\u0442\u00bb. \u0425\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u043e \u2014 \u043d\u043e \u043a\u0430\u043a\u0438\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0430\u0442\u0447\u0438 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u043c\u043f\u0442 \u0438\u043b\u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d, \u043d\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e.<\/p>\n<p>\u042f \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0441 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u043c\u0438 \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438 \u043e\u043a\u043e\u043b\u043e \u0434\u0432\u0443\u0445 \u043b\u0435\u0442 \u2014 \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b \u0438\u0445 \u0432 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u044b\u0435 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b, \u0438 \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u044e \u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0442\u0435\u043a\u0441\u0442\u044b, \u0438 \u0442\u0435\u043a\u0441\u0442\u044b \u043a\u043e\u043b\u043b\u0435\u0433. \u0417\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u043a\u043e\u043f\u0438\u043b\u0438\u0441\u044c \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u043e \u0442\u043e\u043c, \u043a\u0430\u043a\u0438\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u0434\u0430\u044e\u0442 LLM-\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e, \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043c\u043e\u0434\u0435\u043b\u0438, \u0430 \u043d\u0435 \u043a\u0430\u043a \u00ab\u043d\u0435\u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f\u00bb.<\/p>\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u043a\u0430\u0436\u0443 \u0434\u0435\u0441\u044f\u0442\u044c \u0441\u0430\u043c\u044b\u0445 \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432, \u043e\u0431\u044a\u044f\u0441\u043d\u044e \u043a\u0430\u0436\u0434\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0435\u0439, \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u2014 \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u0440\u043e\u043c\u043f\u0442\u0430, sampling-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u042d\u0442\u043e \u043d\u0435 \u00ab\u043a\u0430\u043a \u043e\u0431\u043c\u0430\u043d\u0443\u0442\u044c \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u00bb (\u043e\u0431 \u044d\u0442\u043e\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0432 \u043a\u043e\u043d\u0446\u0435, \u0438 \u0442\u0435\u043c\u0430 \u043d\u0435 \u0442\u0430\u043a\u0430\u044f, \u043a\u0430\u043a \u0435\u0451 \u043f\u043e\u0434\u0430\u044e\u0442). \u042d\u0442\u043e \u043f\u0440\u043e \u0442\u043e, \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0445\u043e\u0434 LLM \u043d\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043a\u0430\u043a \u0432\u044b\u0445\u043e\u0434 LLM.<\/p>\n<hr\/>\n<h3>\u041e\u0442\u043a\u0443\u0434\u0430 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u043c\u0430\u0440\u043a\u0435\u0440\u044b \u043d\u0430 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435<\/h3>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, <strong>\u043f\u043e\u0447\u0435\u043c\u0443<\/strong> \u043e\u043d\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f. \u0418\u043d\u0430\u0447\u0435 \u043b\u044e\u0431\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0438\u0445 \u0443\u0431\u0440\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043c\u043f\u0442 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u043b\u0435\u043f\u0443\u044e.<\/p>\n<p>\u0411\u043e\u043b\u044c\u0448\u0430\u044f \u044f\u0437\u044b\u043a\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u2014 \u044d\u0442\u043e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442. \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u043d\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439 \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u044e \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0442\u043e\u043a\u0435\u043d \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u044d\u0442\u0438\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>temperature<\/code> \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u0435\u043c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u0433\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e: \u043f\u0440\u0438 <code>temperature=0<\/code> \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d, \u043f\u0440\u0438 <code>temperature=1<\/code> \u0432\u044b\u0431\u043e\u0440 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0435\u0435.<\/p>\n<p>\u0413\u0440\u0443\u0431\u0430\u044f \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438:<\/p>\n<pre><code class=\"python\">import numpy as np def sample_next_token(logits, temperature=1.0, top_p=0.9):    \"\"\"    \u0421\u0435\u043c\u043f\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430 \u0438\u0437 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f logits.    \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b temperature \u0438 top_p \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u00ab\u0436\u0438\u0432\u043e\u0441\u0442\u044c\u00bb \u0442\u0435\u043a\u0441\u0442\u0430.    \"\"\"    # \u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c temperature: \u0447\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435, \u0442\u0435\u043c \u043e\u0441\u0442\u0440\u0435\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435    scaled_logits = logits \/ temperature        # \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 softmax    probs = np.exp(scaled_logits) \/ np.sum(np.exp(scaled_logits))        # Top-p (nucleus) sampling: \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u043a\u0435\u043d\u044b, \u0447\u044c\u044f \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u0430\u044f     # \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043d\u0435 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 top_p    sorted_indices = np.argsort(probs)[::-1]    cumulative_probs = np.cumsum(probs[sorted_indices])    cutoff = np.searchsorted(cumulative_probs, top_p) + 1        # \u0417\u0430\u043d\u0443\u043b\u044f\u0435\u043c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0432\u0441\u0435\u0445 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0437\u0430 \u043f\u043e\u0440\u043e\u0433\u043e\u043c    valid_indices = sorted_indices[:cutoff]    valid_probs = probs[valid_indices]    valid_probs \/= valid_probs.sum()        return np.random.choice(valid_indices, p=valid_probs)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u0435 \u2014 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u043c\u043e\u0434\u0435\u043b\u044f\u0445 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0435\u0449\u0451 <code>repetition_penalty<\/code>, <code>frequency_penalty<\/code>, <code>presence_penalty<\/code> \u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438. \u041d\u043e \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0442\u0430\u043a\u043e\u0439: <strong>\u043c\u043e\u0434\u0435\u043b\u044c \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u0447\u0442\u043e-\u0442\u043e \u0431\u043b\u0438\u0437\u043a\u043e\u0435 \u043a \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0446\u0435\u043d\u0442\u0440\u0443 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0435\u0433\u043e \u043a\u043e\u0440\u043f\u0443\u0441\u0430<\/strong>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u044e\u0442 \u0441\u0430\u043c\u044b\u0435 \u0432\u044b\u0441\u043e\u043a\u0438\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>\u0427\u0442\u043e \u0432\u0430\u0436\u043d\u043e: \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439 \u0443 \u043c\u043e\u0434\u0435\u043b\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0437 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u0415\u0441\u043b\u0438 \u0432 \u043a\u043e\u0440\u043f\u0443\u0441\u0435 \u043d\u0430 10 \u043c\u0438\u043b\u043b\u0438\u0430\u0440\u0434\u043e\u0432 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0444\u0440\u0430\u0437\u0430 \u00abIt is important to note that\u00bb \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0438\u043b\u043b\u0438\u043e\u043d \u0440\u0430\u0437, \u0430 \u00ab\u041a\u0441\u0442\u0430\u0442\u0438, \u0442\u0443\u0442 \u0432\u0430\u0436\u043d\u0430\u044f \u0432\u0435\u0449\u044c\u00bb \u2014 \u0442\u044b\u0441\u044f\u0447\u0443, \u0443 \u043f\u0435\u0440\u0432\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430 \u0442\u0440\u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c. \u041f\u0440\u0438 \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445 <code>temperature=0.7<\/code> \u0438 <code>top_p=0.9<\/code> \u0440\u0435\u0434\u043a\u0438\u0435, \u0436\u0438\u0432\u044b\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0439\u0434\u0443\u0442 \u043e\u0442\u0441\u0435\u0447\u0435\u043d\u0438\u0435 \u0438 \u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0443\u0442 \u0432 \u0432\u044b\u0431\u043e\u0440\u043a\u0443.<\/p>\n<p>\u041a \u044d\u0442\u043e\u043c\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043b\u043e\u0439 \u2014 <strong>post-training<\/strong>. \u041f\u043e\u0441\u043b\u0435 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u0435\u0442\u0440\u0435\u0439\u043d\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u0447\u0430\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043b\u044e\u0434\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 RLHF (Reinforcement Learning from Human Feedback) \u0438\u043b\u0438 DPO. \u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0438\u0437 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u00ab\u0432\u044b\u0431\u0438\u0432\u0430\u044e\u0442\u0441\u044f\u00bb \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b: \u0433\u0440\u0443\u0431\u043e\u0441\u0442\u044c, \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u043d\u043e\u0441\u0442\u044c, \u043e\u0442\u043a\u0430\u0437 \u043e\u0442 \u043e\u0442\u0432\u0435\u0442\u0430. \u041d\u043e <strong>\u043f\u043e\u043f\u0443\u0442\u043d\u043e<\/strong> \u0432\u044b\u0431\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u0436\u0438\u0432\u044b\u0435 \u0447\u0435\u0440\u0442\u044b \u0440\u0435\u0447\u0438: \u044d\u043c\u043e\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u043e\u043a\u0440\u0430\u0448\u0435\u043d\u043d\u043e\u0441\u0442\u044c, \u0440\u0435\u0437\u043a\u0438\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b, \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043e\u0431\u043e\u0440\u043e\u0442\u044b.<\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: \u043c\u043e\u0434\u0435\u043b\u044f\u043c \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e <strong>\u0441\u043b\u043e\u0436\u043d\u043e<\/strong> \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435. \u042d\u0442\u043e \u043d\u0435 \u0431\u0430\u0433, \u044d\u0442\u043e \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043d\u0430 \u043f\u043e\u0441\u0442-\u0442\u0440\u0435\u043d\u0438\u043d\u0433\u0435.<\/p>\n<hr\/>\n<h3>\u0414\u0435\u0441\u044f\u0442\u044c \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432, \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u0438\u0447\u0438\u043d\u0443<\/h3>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0439\u0434\u0443\u0441\u044c \u043f\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u043c \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430\u043c. \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u2014 \u0447\u0442\u043e \u044d\u0442\u043e, \u043f\u043e\u0447\u0435\u043c\u0443 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442, \u043a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c.<\/p>\n<h4>1. \u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0440\u043e\u0439\u043a\u0438<\/h4>\n<p>\u0418\u0418 \u043e\u0431\u043e\u0436\u0430\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438: \u00ab\u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e\u00bb, \u00ab\u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0434\u0435\u0448\u0435\u0432\u043b\u0435, \u043d\u0430\u0434\u0451\u0436\u043d\u0435\u0435\u00bb.<\/p>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430.<\/strong> \u0412 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0445 \u043a\u043e\u0440\u043f\u0443\u0441\u0430\u0445 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0438\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u00abX, Y, and Z\u00bb \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0447\u0440\u0435\u0437\u0432\u044b\u0447\u0430\u0439\u043d\u043e \u0447\u0430\u0441\u0442\u043e \u2014 \u044d\u0442\u043e \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0440\u0438\u0442\u043e\u0440\u0438\u043a\u0438. Vidi, vici, veni, life-liberty-pursuit-of-happiness, blood-sweat-tears. \u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0435 \u043a\u043e\u0440\u043f\u0443\u0441\u0430 \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u0438 \u044d\u0442\u043e \u0447\u0435\u0440\u0435\u0437 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043d\u044b\u0435 \u0442\u0435\u043a\u0441\u0442\u044b \u0438 \u0440\u0443\u0441\u0441\u043a\u0443\u044e \u043f\u0443\u0431\u043b\u0438\u0446\u0438\u0441\u0442\u0438\u043a\u0443 XX \u0432\u0435\u043a\u0430. \u041c\u043e\u0434\u0435\u043b\u044c \u0443\u0447\u0438\u0442\u0441\u044f, \u0447\u0442\u043e \u00ab\u0442\u0440\u0451\u0445\u0447\u043b\u0435\u043d\u043d\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f = \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043a\u043e\u043d\u0435\u0446 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u00bb.<\/p>\n<p><strong>\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c.<\/strong> \u0412 \u043f\u0440\u043e\u043c\u043f\u0442\u0435 \u2014 \u044f\u0432\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f: \u00ab\u0438\u0437\u0431\u0435\u0433\u0430\u0439 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u0438\u0437 \u0442\u0440\u0451\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u043f\u0430\u0440\u044b \u0438\u043b\u0438 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0435 \u043f\u043e\u043d\u044f\u0442\u0438\u044f\u00bb. \u0412 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u2014 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0430 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430 <code>\\b\\w+, \\w+ \u0438 \\w+\\b<\/code> \u0438 \u0440\u0443\u0447\u043d\u0430\u044f \u043f\u0440\u0430\u0432\u043a\u0430 \u0447\u0430\u0441\u0442\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432.<\/p>\n<h4>2. \u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0430\u0431\u0437\u0430\u0446-\u0440\u0435\u0437\u044e\u043c\u0435<\/h4>\n<p>\u0418\u0418 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u043c \u0430\u0431\u0437\u0430\u0446\u0435\u043c \u2014 \u00ab\u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c\u00bb, \u00ab\u043f\u043e\u0434\u0432\u043e\u0434\u044f \u0438\u0442\u043e\u0433\u00bb, \u00ab\u0432 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u00bb.<\/p>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430.<\/strong> \u041d\u0430 \u043f\u043e\u0441\u0442-\u0442\u0440\u0435\u043d\u0438\u043d\u0433\u0435 \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u0447\u0430\u0442 \u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435, \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u043d\u044b\u0435 \u043e\u0442\u0432\u0435\u0442\u044b. \u042d\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0438 chatGPT-\u0441\u0442\u0430\u0439\u043b\u0430 \u00ab\u0432\u043e\u043f\u0440\u043e\u0441 \u2192 \u043e\u0442\u0432\u0435\u0442\u00bb. \u041d\u043e \u0442\u0430 \u0436\u0435 \u043f\u0440\u0438\u0432\u044b\u0447\u043a\u0430 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043d\u0430 \u044d\u0441\u0441\u0435, \u043f\u043e\u0441\u0442\u044b, \u0441\u0442\u0430\u0442\u044c\u0438, \u0433\u0434\u0435 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0430\u0431\u0437\u0430\u0446 \u043e\u0431\u044b\u0447\u043d\u043e \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u0435\u043d.<\/p>\n<p><strong>\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c.<\/strong> \u0412 \u043f\u0440\u043e\u043c\u043f\u0442\u0435: \u00ab\u043d\u0435 \u043f\u0438\u0448\u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u0431\u0437\u0430\u0446; \u0437\u0430\u043a\u043e\u043d\u0447\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043c\u044b\u0441\u043b\u044c\u044e\u00bb. \u0412 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435: \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0430\u0431\u0437\u0430\u0446\u0430 \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0435 \u043c\u0430\u0440\u043a\u0435\u0440\u044b (\u00ab\u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c\u00bb, \u00ab\u0438\u0442\u0430\u043a\u00bb, \u00ab\u0432 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u00bb) \u0438 \u0435\u0433\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441 \u0440\u0443\u0447\u043d\u044b\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u043c.<\/p>\n<h4>3. \u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0435 \u0445\u0435\u0434\u0436\u0438 \u0438 \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0438<\/h4>\n<p>\u00ab\u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c\u00bb, \u00ab\u0432\u0430\u0436\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c\u00bb, \u00ab\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u0438\u0437\u043d\u0430\u0442\u044c\u00bb, \u00ab\u0431\u0435\u0437\u0443\u0441\u043b\u043e\u0432\u043d\u043e\u00bb, \u00ab\u043d\u0435\u0441\u043e\u043c\u043d\u0435\u043d\u043d\u043e\u00bb.<\/p>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430.<\/strong> \u0412 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0445 \u043a\u043e\u0440\u043f\u0443\u0441\u0430\u0445 \u043c\u043d\u043e\u0433\u043e \u0430\u043a\u0430\u0434\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u044e\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432, \u0433\u0434\u0435 \u0442\u0430\u043a\u0438\u0435 \u043e\u0431\u043e\u0440\u043e\u0442\u044b \u2014 \u043d\u043e\u0440\u043c\u0430. \u041f\u043b\u044e\u0441 \u043f\u043e\u0441\u0442-\u0442\u0440\u0435\u043d\u0438\u043d\u0433 \u0437\u0430\u043a\u0440\u0435\u043f\u043b\u044f\u0435\u0442 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u043d\u043e\u0441\u0442\u044c \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u043c (\u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0434\u0435\u043b\u0430\u0442\u044c \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u043c\u0438).<\/p>\n<p><strong>\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c.<\/strong> \u0421\u043f\u0438\u0441\u043e\u043a \u0445\u0435\u0434\u0436\u0435\u0439-\u0441\u0442\u043e\u043f\u043e\u0432 \u0432 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435. \u0414\u043b\u044f \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e:<\/p>\n<pre><code class=\"python\">HEDGE_PATTERNS = [    r\"\\b\u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c,?\\s*\",    r\"\\b\u0432\u0430\u0436\u043d\u043e (\u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c|\u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c|\u043f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044c),?\\s*\",    r\"\\b\u0441\u043b\u0435\u0434\u0443\u0435\u0442 (\u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c|\u043f\u0440\u0438\u0437\u043d\u0430\u0442\u044c|\u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c),?\\s*\",    r\"\\b(\u0431\u0435\u0437\u0443\u0441\u043b\u043e\u0432\u043d\u043e|\u043d\u0435\u0441\u043e\u043c\u043d\u0435\u043d\u043d\u043e|\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e|\u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f),?\\s*\",    r\"\\b\u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\\s+(\u043c\u043e\u0436\u0435\u0442|\u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d|\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e)\",]  def remove_hedges(text: str) -&gt; str:    \"\"\"\u0423\u0431\u0438\u0440\u0430\u0435\u0442 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0447\u0430\u0441\u0442\u044b\u0435 \u0418\u0418-\u0445\u0435\u0434\u0436\u0438 \u0438\u0437 \u0442\u0435\u043a\u0441\u0442\u0430.\"\"\"    import re    for pattern in HEDGE_PATTERNS:        # \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430 \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u0431\u0443\u043a\u0432\u044b        text = re.sub(pattern, \"\", text, flags=re.IGNORECASE)        # \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0431\u0443\u043a\u0432\u0443 \u043f\u043e\u0441\u043b\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f        text = re.sub(r\"(^|\\.\\s+)([\u0430-\u044f])\",                       lambda m: m.group(1) + m.group(2).upper(),                       text)    return text<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u0435\u043d \u2014 \u043c\u043e\u0436\u0435\u0442 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0445\u0435\u0434\u0436, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u0435\u043d \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u2014 \u043d\u043e \u043a\u0430\u043a \u043f\u0435\u0440\u0432\u0430\u044f \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<h4>4. \u00ab\u0412 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u043c \u043c\u0438\u0440\u0435\u00bb \u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u043b\u043a\u0438<\/h4>\n<p>\u0421\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0435 \u0444\u0440\u0430\u0437\u044b \u0430\u0431\u0437\u0430\u0446\u0435\u0432 \u0442\u0438\u043f\u0430 \u00ab\u0432 \u044d\u043f\u043e\u0445\u0443 \u0446\u0438\u0444\u0440\u043e\u0432\u0438\u0437\u0430\u0446\u0438\u0438\u00bb, \u00ab\u043d\u0435 \u0441\u0435\u043a\u0440\u0435\u0442, \u0447\u0442\u043e\u00bb, \u00ab\u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u00bb.<\/p>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430.<\/strong> \u042d\u0442\u043e \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0430\u043a\u0430\u0434\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u0438 \u043f\u0440\u0435\u0441\u0441-\u0440\u0435\u043b\u0438\u0437\u043e\u0432. \u0412 \u043a\u043e\u0440\u043f\u0443\u0441\u0430\u0445 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u0445 \u043c\u043d\u043e\u0433\u043e (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432 \u043d\u043e\u0432\u043e\u0441\u0442\u043d\u044b\u0445 \u0430\u0440\u0445\u0438\u0432\u0430\u0445 \u0438 \u043d\u0430\u0443\u0447\u043d\u043e-\u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u0430\u0445), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u0445 \u043a\u0430\u043a \u00ab\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0441\u0442\u0430\u0440\u0442\u00bb.<\/p>\n<p><strong>\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c.<\/strong> \u0412 \u043f\u0440\u043e\u043c\u043f\u0442\u0435: \u00ab\u043d\u0430\u0447\u0438\u043d\u0430\u0439 \u0430\u0431\u0437\u0430\u0446\u044b \u0441 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u0430 \u0438\u043b\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0431\u0435\u0437 \u043e\u0431\u043e\u0431\u0449\u0430\u044e\u0449\u0438\u0445 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043e\u043a\u00bb. \u0412 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435: blacklist \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0440\u0430\u0437 \u0438 \u0438\u0445 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0438.<\/p>\n<h4>5. \u0421\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u044f \u00ab\u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \/ \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b\u00bb<\/h4>\n<p>\u041f\u0440\u0438 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0438 \u0441\u043f\u043e\u0440\u043d\u044b\u0445 \u0442\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u0430\u0451\u0442 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443: \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0437\u0430, \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u043e\u0442\u0438\u0432, \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u043e \u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0438\u0441\u0441\u0435.<\/p>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430.<\/strong> \u0417\u0434\u0435\u0441\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u0441\u0442-\u0442\u0440\u0435\u043d\u0438\u043d\u0433 \u0434\u043e\u043c\u0438\u043d\u0438\u0440\u0443\u0435\u0442. \u041c\u043e\u0434\u0435\u043b\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0443\u0447\u0430\u0442 \u043d\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0432 \u0441\u043f\u043e\u0440\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u0445, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043f\u043e\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u044d\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0438\u0441\u043a\u043e\u0432. Anthropic \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u044d\u0442\u043e \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u043e\u0439 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430\u043c, OpenAI \u2014 model neutrality. \u042d\u0442\u043e \u0441\u043e\u0437\u043d\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0438 \u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438 \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u043c.<\/p>\n<p><strong>\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c.<\/strong> \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0442\u0435\u043a\u0441\u0442 \u0441 \u0430\u0432\u0442\u043e\u0440\u0441\u043a\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0435\u0439 \u2014 \u043f\u043e\u043b\u0435\u0437\u043d\u0435\u0435 \u0434\u0430\u0432\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u043c\u043f\u0442 \u00ab\u043f\u0435\u0440\u0441\u043e\u043d\u0443\u00bb: \u00ab\u0442\u044b \u043f\u0438\u0448\u0435\u0448\u044c \u043e\u0442 \u043b\u0438\u0446\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0430 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 X, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0432\u0451\u0440\u0434\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u0442, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Y\u00bb. \u0422\u043e\u0433\u0434\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0432\u043d\u0443\u0442\u0440\u0438 \u0440\u043e\u043b\u0438. \u0418\u043b\u0438 \u2014 \u043f\u043e\u0441\u043b\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u2014 \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0443\u0440\u0443 \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0437\u0430\u043c\u0435\u043d\u0438\u0432 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u044e \u043d\u0430 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435.<\/p>\n<h4>6. \u0418\u0434\u0435\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/h4>\n<p>\u041a\u0430\u0436\u0434\u043e\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0433\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0431\u0435\u0437\u0443\u043f\u0440\u0435\u0447\u043d\u043e. \u0414\u043b\u0438\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b, \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0435 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u044b. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u00ab\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445\u00bb \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u0434\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0430.<\/p>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430.<\/strong> \u041a\u043e\u0440\u043f\u0443\u0441\u044b \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u2014 \u044d\u0442\u043e \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0442\u0435\u043a\u0441\u0442\u044b. \u041a\u043d\u0438\u0433\u0438, \u0433\u0430\u0437\u0435\u0442\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u0432\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u044f. \u0421\u043f\u043e\u043d\u0442\u0430\u043d\u043d\u043e\u0439 \u043f\u0438\u0441\u044c\u043c\u0435\u043d\u043d\u043e\u0439 \u0440\u0435\u0447\u0438 \u0442\u0430\u043c \u043c\u0430\u043b\u043e (\u0444\u043e\u0440\u0443\u043c\u044b \u0438 Reddit \u0435\u0441\u0442\u044c, \u043d\u043e \u043e\u043d\u0438 \u0443\u0436\u0435 \u0432\u0437\u0432\u0435\u0448\u0435\u043d\u044b \u0432\u043d\u0438\u0437 \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u044f\u0445). \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u0447\u0438\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u00ab\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u00bb, \u0430 \u043d\u0435 \u00ab\u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u00bb.<\/p>\n<p><strong>\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c.<\/strong> \u041f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b\u043c\u0438 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u044f\u043c\u0438: \u0438\u043d\u043e\u0433\u0434\u0430 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u0430\u043f\u044f\u0442\u0443\u044e \u043d\u0430 \u0442\u043e\u0447\u043a\u0443 \u0434\u043b\u044f \u0434\u0440\u0430\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0430, \u0438\u043d\u043e\u0433\u0434\u0430 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0434\u043d\u043e \u0441\u043b\u043e\u0432\u043e \u0430\u0431\u0437\u0430\u0446\u0435\u043c. \u042d\u0442\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u2014 \u043e\u0431\u044b\u0447\u043d\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0438\u043b\u0438 \u0432\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0441 \u044f\u0432\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 \u00ab\u0434\u043e\u0431\u0430\u0432\u044c \u0441\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u043e\u043b\u044c\u043d\u043e\u0441\u0442\u0438\u00bb.<\/p>\n<h4>7. \u041e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u0430 \u0430\u0431\u0437\u0430\u0446\u0435\u0432<\/h4>\n<p>\u0418\u0418-\u0442\u0435\u043a\u0441\u0442\u044b \u0438\u043c\u0435\u044e\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0437\u043a\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u043b\u0438\u043d \u0430\u0431\u0437\u0430\u0446\u0435\u0432 \u2014 \u043e\u0431\u044b\u0447\u043d\u043e 3-5 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043a\u0430\u0436\u0434\u044b\u0439, \u0441 \u0440\u0435\u0434\u043a\u0438\u043c\u0438 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430.<\/strong> \u042d\u0442\u043e \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d, \u0432\u044b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0438\u0437 \u00ab\u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0430\u0431\u0437\u0430\u0446\u0430\u00bb \u0432 \u043a\u043e\u0440\u043f\u0443\u0441\u0430\u0445. \u0423 \u0436\u0438\u0432\u043e\u0433\u043e \u0430\u0432\u0442\u043e\u0440\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u043b\u0438\u043d \u0448\u0438\u0440\u043e\u043a\u043e\u0435: \u0435\u0441\u0442\u044c \u0430\u0431\u0437\u0430\u0446\u044b \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0435\u0441\u0442\u044c \u0438\u0437 \u0434\u0435\u0441\u044f\u0442\u0438. \u0423 \u043c\u043e\u0434\u0435\u043b\u0438 \u2014 \u0443\u0437\u043a\u043e\u0435.<\/p>\n<p><strong>\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c.<\/strong> \u041c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0438\u0447\u0435\u0441\u043a\u0438:<\/p>\n<pre><code class=\"python\">import numpy as np  def paragraph_length_variance(text: str) -&gt; tuple[float, float]:    \"\"\"    \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0440\u0435\u0434\u043d\u044e\u044e \u0434\u043b\u0438\u043d\u0443 \u0430\u0431\u0437\u0430\u0446\u0430 (\u0432 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445) \u0438 \u0435\u0451 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435.    \u0415\u0441\u043b\u0438 std\/mean &lt; 0.3, \u0442\u0435\u043a\u0441\u0442 \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d LLM.    \"\"\"    paragraphs = [p.strip() for p in text.split(\"\\n\\n\") if p.strip()]    sentence_counts = [        len([s for s in p.split(\".\") if s.strip()])         for p in paragraphs    ]        mean_len = np.mean(sentence_counts)    std_len = np.std(sentence_counts)    cv = std_len \/ mean_len if mean_len &gt; 0 else 0        return mean_len, cv  # \u041f\u0440\u0438\u043c\u0435\u0440: \u0442\u0435\u043a\u0441\u0442 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043e\u0431\u044b\u0447\u043d\u043e \u0434\u0430\u0451\u0442 cv &gt; 0.5# \u0422\u0435\u043a\u0441\u0442 \u043c\u043e\u0434\u0435\u043b\u0438 \u2014 cv &lt; 0.3<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0435 cv \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u043d\u0438\u0436\u0435 0.3 \u2014 \u044d\u0442\u043e \u0441\u0438\u0433\u043d\u0430\u043b, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0441 \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043d\u0438\u0435\u043c\/\u0441\u043b\u0438\u044f\u043d\u0438\u0435\u043c \u0430\u0431\u0437\u0430\u0446\u0435\u0432) \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0440\u043e\u043c\u043f\u0442.<\/p>\n<h4>8. \u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0435 \u043c\u0435\u0442\u0430\u0444\u043e\u0440\u044b<\/h4>\n<p>\u00ab\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043d\u043e\u0432\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438\u00bb, \u00ab\u0438\u0433\u0440\u0430\u0435\u0442 \u043a\u043b\u044e\u0447\u0435\u0432\u0443\u044e \u0440\u043e\u043b\u044c\u00bb, \u00ab\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0430\u0436\u043d\u044b\u043c \u0430\u0441\u043f\u0435\u043a\u0442\u043e\u043c\u00bb, \u00ab\u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c\u00bb.<\/p>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430.<\/strong> \u042d\u0442\u0438 \u0444\u0440\u0430\u0437\u044b \u0447\u0440\u0435\u0437\u0432\u044b\u0447\u0430\u0439\u043d\u043e \u0447\u0430\u0441\u0442\u044b \u0432 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0445 \u0434\u0435\u043b\u043e\u0432\u043e\u0439 \u0438 \u043f\u0443\u0431\u043b\u0438\u0446\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0440\u0435\u0447\u0438. \u041e\u043d\u0438 \u00ab\u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u043e-\u0443\u0434\u0430\u0447\u043d\u044b\u0435\u00bb: \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u0447\u0430\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e, \u043d\u043e \u0437\u0432\u0443\u0447\u0430\u0442 \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e. \u041c\u043e\u0434\u0435\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u0445 \u043a\u0430\u043a \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0443, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043e\u0431\u0449\u0435\u0435.<\/p>\n<p><strong>\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c.<\/strong> \u0412 \u043f\u0440\u043e\u043c\u043f\u0442\u0435: \u00ab\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430, \u0438\u043c\u0435\u043d\u0430, \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u043e\u0431\u0449\u0435\u043d\u0438\u0439; \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u0444\u0440\u0430\u0437\u044b \u201c\u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438\u201d, \u201c\u0438\u0433\u0440\u0430\u0435\u0442 \u043a\u043b\u044e\u0447\u0435\u0432\u0443\u044e \u0440\u043e\u043b\u044c\u201d, \u201c\u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c\u201d\u00bb. \u041c\u043e\u0434\u0435\u043b\u0438 \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044e\u0442 \u043d\u0430 \u0442\u0430\u043a\u0438\u0435 \u044f\u0432\u043d\u044b\u0435 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438.<\/p>\n<h4>9. \u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0432\u044f\u0437\u043a\u0438 \u043c\u0435\u0436\u0434\u0443 \u0430\u0431\u0437\u0430\u0446\u0430\u043c\u0438<\/h4>\n<p>\u00ab\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c\u00bb, \u00ab\u0432 \u044d\u0442\u043e\u0439 \u0441\u0432\u044f\u0437\u0438\u00bb, \u00ab\u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0442\u043e\u0438\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c\u00bb, \u00ab\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435\u00bb.<\/p>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430.<\/strong> \u0421\u0432\u044f\u0437\u043a\u0438 \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u0430\u043a\u0430\u0434\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0435\u043a\u0441\u0442\u0430\u0445 \u0438 \u044d\u0441\u0441\u0435, \u0438 \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u0441\u0432\u043e\u0438\u043b\u0430, \u0447\u0442\u043e \u00ab\u0445\u043e\u0440\u043e\u0448\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u00bb \u0438\u043c\u0435\u0435\u0442 \u044f\u0432\u043d\u044b\u0435 \u0441\u0432\u044f\u0437\u043a\u0438 \u043c\u0435\u0436\u0434\u0443 \u043c\u044b\u0441\u043b\u044f\u043c\u0438. \u041d\u043e \u0432 \u0436\u0438\u0432\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u0446\u0438\u0441\u0442\u0438\u043a\u0435 \u043c\u044b\u0441\u043b\u0438 \u0447\u0430\u0441\u0442\u043e <strong>\u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0441\u0435\u0434\u0441\u0442\u0432\u0443\u044e\u0442<\/strong> \u2014 \u0441\u0432\u044f\u0437\u044c \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f.<\/p>\n<p><strong>\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c.<\/strong> \u0412 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u2014 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0432\u044f\u0437\u043a\u0438 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0430\u0431\u0437\u0430\u0446\u0435\u0432 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0432\u0441\u0451 \u043b\u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u2014 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u0441\u0432\u044f\u0437\u044c \u0441\u0442\u0430\u043b\u0430 \u044f\u0432\u043d\u043e\u0439 \u0438\u0437 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f.<\/p>\n<h4>10. \u0418\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u0435 \u0445\u0435\u0434\u0436\u0438 \u043d\u0430 \u0442\u0432\u0451\u0440\u0434\u044b\u0445 \u0444\u0430\u043a\u0442\u0430\u0445<\/h4>\n<p>\u00abPython \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0434\u043b\u044f \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438\u00bb. \u00ab\u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f React, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0435\u00bb.<\/p>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430.<\/strong> \u042d\u0442\u043e \u0442\u043e\u0442 \u0436\u0435 \u044d\u0444\u0444\u0435\u043a\u0442, \u0447\u0442\u043e \u0438 \u043f\u0443\u043d\u043a\u0442 3, \u043d\u043e \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0439. \u041c\u043e\u0434\u0435\u043b\u044c \u0443\u0447\u0430\u0442 \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u043d\u044b\u0445 \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0439, \u0438 \u043e\u043d\u0430 \u0445\u0435\u0434\u0436\u0438\u0442 \u0434\u0430\u0436\u0435 \u0442\u0430\u043c, \u0433\u0434\u0435 \u0444\u0430\u043a\u0442 \u0442\u0432\u0451\u0440\u0434\u044b\u0439.<\/p>\n<p><strong>\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c.<\/strong> \u0412 \u043f\u0440\u043e\u043c\u043f\u0442\u0435: \u00ab\u043a\u043e\u0433\u0434\u0430 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0435\u0440\u043d\u043e, \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0439 \u201c\u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u201d, \u201c\u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u201d, \u201c\u043e\u0431\u044b\u0447\u043d\u043e\u201d\u00bb. \u0412 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435: \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0445\u0435\u0434\u0436\u0435\u0439-\u0441\u0442\u043e\u043f\u043e\u0432 \u0440\u044f\u0434\u043e\u043c \u0441 \u043c\u0430\u0440\u043a\u0435\u0440\u0430\u043c\u0438 \u0444\u0430\u043a\u0442\u043e\u0432 (\u0447\u0438\u0441\u043b\u0430, \u0438\u043c\u0435\u043d\u0430 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439, \u0438\u043c\u0435\u043d\u0430 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439).<\/p>\n<hr\/>\n<h3>\u0427\u0442\u043e \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u0435\u0442\u0435 LLM \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0442 \u0438 \u0445\u043e\u0442\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0445\u043e\u0434 \u043d\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043a\u0430\u043a \u00ab\u043e\u043f\u044f\u0442\u044c \u0447\u0430\u0442-\u0431\u043e\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u00bb, \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0442\u0430\u043a\u0438\u0435.<\/p>\n<p><strong>\u041d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u0440\u043e\u043c\u043f\u0442\u0430.<\/strong> \u0421\u0442\u043e\u0438\u0442 \u044f\u0432\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u0430\u043f\u0440\u0435\u0442\u044b. \u041d\u0435 \u00ab\u043f\u0438\u0448\u0438 \u0436\u0438\u0432\u043e \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u00bb (\u044d\u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442), \u0430 \u00ab\u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u0444\u0440\u0430\u0437\u044b \u201c\u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c\u201d, \u201c\u0432\u0430\u0436\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c\u201d, \u201c\u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c\u201d; \u043d\u0435 \u0434\u0435\u043b\u0430\u0439 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u0438\u0437 \u0442\u0440\u0451\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432; \u043d\u0435 \u043f\u0438\u0448\u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u0431\u0437\u0430\u0446\u0430\u00bb. \u041a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043b\u0443\u0447\u0448\u0435 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u044b\u0445.<\/p>\n<p><strong>\u041d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 sampling-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432.<\/strong> \u041f\u0440\u0438 <code>temperature=0.3<\/code> \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u044b\u0439 \u00ab\u0441\u0440\u0435\u0434\u043d\u0438\u0439\u00bb \u0432\u044b\u0445\u043e\u0434 \u2014 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u043c\u0430\u0440\u043a\u0435\u0440\u0430\u043c\u0438 \u0432 \u0447\u0438\u0441\u0442\u043e\u043c \u0432\u0438\u0434\u0435. \u041f\u0440\u0438 <code>temperature=0.9-1.1<\/code> \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c, \u043d\u043e \u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0441\u0435\u0434\u0430\u0442\u044c. \u041f\u043e\u0434\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u043e\u0434 \u0437\u0430\u0434\u0430\u0447\u0443. \u0414\u043b\u044f \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b <code>temperature=1.0<\/code> \u043f\u043b\u044e\u0441 <code>top_p=0.95<\/code>.<\/p>\n<p><strong>\u041d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<\/strong> \u0420\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0438 \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0445\u0435\u0434\u0436\u0435\u0439 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043d\u0430 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u2014 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432. \u042d\u0442\u043e \u043d\u0435 \u043f\u0430\u043d\u0430\u0446\u0435\u044f, \u043d\u043e \u043f\u0435\u0440\u0432\u0430\u044f \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0438\u043d\u0443\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0443\u0431\u0438\u0440\u0430\u0435\u0442 60-70% \u0441\u0430\u043c\u044b\u0445 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432.<\/p>\n<p><strong>\u041d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0432\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438.<\/strong> \u0418\u043d\u043e\u0433\u0434\u0430 \u0445\u043e\u0440\u043e\u0448\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 schema: \u043f\u0435\u0440\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a, \u0432\u0442\u043e\u0440\u0430\u044f (\u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u043c \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Claude \u043f\u043e\u0441\u043b\u0435 GPT) \u0434\u0435\u043b\u0430\u0435\u0442 \u0440\u0435\u0434\u0430\u043a\u0442\u0443\u0440\u0443 \u0432 \u0436\u0438\u0432\u043e\u043c \u0441\u0442\u0438\u043b\u0435. \u042d\u0442\u043e \u0443\u0434\u0432\u0430\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c, \u043d\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u0449\u0443\u0442\u0438\u043c\u043e \u0432\u044b\u0448\u0435.<\/p>\n<p><strong>\u041d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430.<\/strong> \u0415\u0441\u043b\u0438 \u0431\u044e\u0434\u0436\u0435\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u2014 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0443\u0440\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043c \u043d\u0430 5-10 \u043c\u0438\u043d\u0443\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f 30%. \u042d\u0442\u043e \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u00ab\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u00bb \u0438 \u00ab\u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u043e\u00bb.<\/p>\n<hr\/>\n<h3>\u041f\u0440\u043e \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u044b \u0438 \u00ab\u043e\u0431\u0445\u043e\u0434\u00bb<\/h3>\n<p>\u041d\u0435 \u043c\u043e\u0433\u0443 \u043d\u0435 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0430\u0440\u0443 \u0441\u043b\u043e\u0432 \u043f\u0440\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u0443\u044e \u0442\u0435\u043c\u0443 \u2014 \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u044b \u0418\u0418-\u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0438\u0445 \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c. \u0412 \u0440\u0443\u043d\u0435\u0442\u0435 \u044d\u0442\u0430 \u0442\u0435\u043c\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0440\u043e\u0434\u0430\u0451\u0442\u0441\u044f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u00ab\u043f\u0440\u043e\u043c\u043f\u0442 \u0434\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430 \u0410\u043d\u0442\u0438\u043f\u043b\u0430\u0433\u0438\u0430\u0442-\u0432\u0443\u0437\u00bb, \u00ab\u043b\u0430\u0439\u0444\u0445\u0430\u043a \u0434\u043b\u044f \u043a\u0443\u0440\u0441\u043e\u0432\u044b\u0445\u00bb.<\/p>\n<p>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043d\u0430 \u0442\u0435\u0445 \u0436\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430\u0445, \u0447\u0442\u043e \u044f \u043e\u043f\u0438\u0441\u0430\u043b \u0432\u044b\u0448\u0435: \u0438\u0449\u0443\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0438, \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u043d\u044b\u0435 \u0434\u043b\u044f LLM-\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438. \u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u043b\u0438\u043d \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 n-gram, \u00ab\u0433\u043b\u0430\u0434\u043a\u043e\u0441\u0442\u044c\u00bb \u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u043e \u043f\u0435\u0440\u043f\u043b\u0435\u043a\u0441\u0438\u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438. \u0421\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u044b (GPTZero, Originality, \u0430\u043a\u0430\u0434\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0410\u043d\u0442\u0438\u043f\u043b\u0430\u0433\u0438\u0430\u0442\u044b) \u0434\u0430\u044e\u0442 \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c \u0418\u0418-\u0442\u0435\u043a\u0441\u0442\u0435 80-95% \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>\u00ab\u041f\u0440\u043e\u043c\u043f\u0442 \u0434\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430\u00bb \u2014 \u044d\u0442\u043e \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0441\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432 \u0432\u044b\u0445\u043e\u0434\u0435 \u043c\u043e\u0434\u0435\u043b\u0438, \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0441\u0442\u0430\u043b\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0443\u044e. \u041a\u043e\u0441\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u0430\u0445. \u041d\u0430 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u2014 \u043d\u0435\u0442. \u042f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u0432, \u0432\u044b\u0445\u043e\u0434 \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u043b \u0447\u0435\u0440\u0435\u0437 GPTZero \u0438 \u0410\u043d\u0442\u0438\u043f\u043b\u0430\u0433\u0438\u0430\u0442 \u2014 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u043b\u043e\u0441\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043c\u0430\u0440\u043a\u0435\u0440\u044b (\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f) \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u043c \u043d\u0435 \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f.<\/p>\n<p>\u0427\u0442\u043e <strong>\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/strong> \u2014 \u044d\u0442\u043e <strong>\u0433\u043b\u0443\u0431\u043e\u043a\u0430\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0443\u0440\u0430 \u0441 \u043f\u0440\u0438\u0432\u043d\u0435\u0441\u0435\u043d\u0438\u0435\u043c \u0441\u0432\u043e\u0435\u0433\u043e<\/strong>. \u0412\u044b \u0431\u0435\u0440\u0451\u0442\u0435 \u0418\u0418-\u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0435 \u0442\u0435\u0437\u0438\u0441\u044b, \u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0438, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u043b\u0438\u0447\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b, \u043b\u043e\u043c\u0430\u0435\u0442\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0443\u0431\u0438\u0440\u0430\u0435\u0442\u0435 \u0432\u0441\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0432\u044b\u0448\u0435. \u041a \u043c\u043e\u043c\u0435\u043d\u0442\u0443, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u2014 \u0443 \u0432\u0430\u0441 \u0432 \u0440\u0443\u043a\u0430\u0445 \u0443\u0436\u0435 <strong>\u0432\u0430\u0448 \u0442\u0435\u043a\u0441\u0442<\/strong>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0418\u0418 \u0431\u044b\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u043a\u0430\u043a \u0431\u043e\u043b\u0432\u0430\u043d\u043a\u0430. \u042d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430, \u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u0442\u0443\u0442 \u043e\u0431 \u00ab\u043e\u0431\u043c\u0430\u043d\u0435 \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u0430\u00bb \u0441\u0442\u0440\u0430\u043d\u043d\u043e.<\/p>\n<p>\u0412 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0430\u043a\u0430\u0434\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0440\u0430\u0431\u043e\u0442 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u043e\u0441\u043e\u0431\u0430\u044f. \u0415\u0441\u043b\u0438 \u0432\u0430\u0448\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u0441\u0434\u0430\u0442\u044c \u043a\u0443\u0440\u0441\u043e\u0432\u0443\u044e, \u0434\u0438\u0441\u0441\u0435\u0440\u0442\u0430\u0446\u0438\u044e \u0438\u043b\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0443\u044e, \u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0441\u043a\u043e\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0443\u0441\u0438\u043b\u0438\u0435\u043c \u2014 \u044d\u0442\u043e \u043f\u043b\u043e\u0445\u0430\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f. \u0418 \u043d\u0435 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440 \u043f\u043e\u0439\u043c\u0430\u0435\u0442 (\u043e\u043d, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u0435 \u043f\u043e\u0439\u043c\u0451\u0442), \u0430 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e <strong>\u0443 \u0443\u0447\u0451\u0431\u044b \u0435\u0441\u0442\u044c \u0441\u043c\u044b\u0441\u043b \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 \u043e\u0446\u0435\u043d\u043a\u0438<\/strong>. \u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u043a\u0443\u0440\u0441\u043e\u0432\u0443\u044e \u0440\u0443\u043a\u0430\u043c\u0438, \u0432\u044b \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u0432 \u0442\u0435\u043c\u0435. \u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0435\u0442\u0435 \u0435\u0451 \u0447\u0435\u0440\u0435\u0437 \u0418\u0418 \u0438 \u043e\u0431\u043b\u0430\u0433\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u0435\u0442\u0435 \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u043c \u2014 \u0443 \u0432\u0430\u0441 \u0432 \u0433\u043e\u043b\u043e\u0432\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f. \u0427\u0435\u0440\u0435\u0437 \u0433\u043e\u0434 \u0432\u044b \u043d\u0435 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u0435, \u043e \u0447\u0451\u043c \u0431\u044b\u043b\u0430 \u044d\u0442\u0430 \u0440\u0430\u0431\u043e\u0442\u0430. \u0418 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043a\u0443\u0440\u0441\u0430\u0445, \u043d\u0430 \u0434\u0438\u043f\u043b\u043e\u043c\u0435, \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0435 \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0432 \u0434\u0435\u0444\u0438\u0446\u0438\u0442\u0435 \u0437\u043d\u0430\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043a\u0430\u043a-\u0442\u043e \u043a\u043e\u043c\u043f\u0435\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>\u0412 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 (\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f) \u2014 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u0432\u0441\u0451 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e. \u041d\u0438\u043a\u043e\u0433\u043e \u0432\u044b \u043d\u0435 \u043e\u0431\u043c\u0430\u043d\u044b\u0432\u0430\u0435\u0442\u0435, \u0432\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u0432\u044b\u0445\u043e\u0434 \u043c\u043e\u0434\u0435\u043b\u0438 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c.<\/p>\n<hr\/>\n<h3>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u043c\u044b\u0441\u043b\u044c<\/h3>\n<p>\u041c\u0430\u0440\u043a\u0435\u0440\u044b \u0418\u0418-\u0442\u0435\u043a\u0441\u0442\u0430 \u2014 \u044d\u0442\u043e \u043d\u0435 \u043c\u0430\u0433\u0438\u044f \u0438 \u043d\u0435 \u00ab\u0441\u0435\u043a\u0440\u0435\u0442\u043d\u0430\u044f \u0443\u0442\u0435\u0447\u043a\u0430 \u0438\u0437 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f\u00bb. \u042d\u0442\u043e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u044b: \u0443\u0441\u0440\u0435\u0434\u043d\u0435\u043d\u0438\u0435 \u043f\u043e \u043a\u043e\u0440\u043f\u0443\u0441\u0443 \u043f\u043b\u044e\u0441 \u043f\u043e\u0441\u0442-\u0442\u0440\u0435\u043d\u0438\u043d\u0433 \u0441 \u0430\u043a\u0446\u0435\u043d\u0442\u043e\u043c \u043d\u0430 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u041e\u0442\u0441\u044e\u0434\u0430 \u2014 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0440\u043e\u0439\u043a\u0438, \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0435 \u043c\u0435\u0442\u0430\u0444\u043e\u0440\u044b, \u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0430\u0431\u0437\u0430\u0446\u044b.<\/p>\n<p>\u0417\u043d\u0430\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043f\u043e \u0434\u0432\u0443\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c. \u041f\u0435\u0440\u0432\u0430\u044f \u2014 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f: \u0435\u0441\u043b\u0438 \u0432\u044b \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u0435\u0442\u0435 LLM \u0432 \u043f\u0440\u043e\u0434\u0443\u043a\u0442, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e \u0431\u043e\u0440\u043e\u0442\u044c\u0441\u044f \u0441 \u00abAI look\u00bb \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043c\u043f\u0442, sampling \u0438 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443. \u0412\u0442\u043e\u0440\u0430\u044f \u2014 \u043e\u0431\u0449\u0430\u044f: \u044d\u0442\u043e\u0442 \u0436\u0435 \u043d\u0430\u0431\u043e\u0440 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u043c\u0435\u0436\u0434\u0443 \u00ab\u0441\u0440\u0435\u0434\u043d\u0438\u043c \u0445\u043e\u0440\u043e\u0448\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c\u00bb \u0438 \u00ab\u0436\u0438\u0432\u044b\u043c \u0430\u0432\u0442\u043e\u0440\u0441\u043a\u0438\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c\u00bb, \u0438 \u044d\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u043c\u0443, \u043a\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043e \u0441\u043b\u043e\u0432\u043e\u043c.<\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u044c\u0441\u044f \u043a \u044d\u0442\u043e\u043c\u0443 \u043d\u0435 \u043a\u0430\u043a \u043a \u043d\u0430\u0431\u043e\u0440\u0443 \u043b\u0430\u0439\u0444\u0445\u0430\u043a\u043e\u0432 \u0434\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430, \u0430 \u043a\u0430\u043a \u043a \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0442\u0438\u043f\u0430\u043c\u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u0432. \u0422\u043e\u0433\u0434\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0440\u0435\u0434\u0430\u043a\u0442\u0443\u0440\u044b, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0432\u044b\u0448\u0435, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u0430\u043c\u0438 \u0441\u043e\u0431\u043e\u0439.<\/p>\n<hr\/>\n<p><em>\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438:<\/em><\/p>\n<ul>\n<li>\n<p><em>Holtzman et al. \u00abThe Curious Case of Neural Text Degeneration\u00bb \u2014 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043f\u0440\u043e nucleus sampling \u0438 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438<\/em><\/p>\n<\/li>\n<li>\n<p><em>Mitchell et al. \u00abDetectGPT\u00bb \u2014 \u0430\u043a\u0430\u0434\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044e LLM-\u0442\u0435\u043a\u0441\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u043f\u043b\u0435\u043a\u0441\u0438\u0438<\/em><\/p>\n<\/li>\n<li>\n<p><em>\u0421\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043e false-positive \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043d\u0430 \u0442\u0435\u043a\u0441\u0442\u0430\u0445 non-native English speakers (Liang et al., 2023)<\/em><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/platform.openai.com\/docs\/api-reference\/chat\" rel=\"noopener noreferrer nofollow\"><em>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f OpenAI \u043f\u043e sampling-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c<\/em><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/docs.anthropic.com\/en\/docs\/build-with-claude\/prompt-engineering\/overview\" rel=\"noopener noreferrer nofollow\"><em>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f Anthropic \u043f\u043e prompt engineering<\/em><\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1033450\/\">https:\/\/habr.com\/ru\/articles\/1033450\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0430 \u0442\u043e, \u043f\u043e\u0447\u0435\u043c\u0443 GPT, Claude \u0438 Gemini \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442 \u043f\u043e\u0445\u043e\u0436\u0438\u0439 \u00ab\u0441\u0440\u0435\u0434\u043d\u0438\u0439\u00bb \u0442\u0435\u043a\u0441\u0442, \u0438 \u043a\u0430\u043a \u0441 \u044d\u0442\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0435\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u0435\u043c LLM \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d \u2014 \u0431\u0443\u0434\u044c \u0442\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0439 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0442\u0435\u0445\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0438\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u2014 \u0440\u0430\u043d\u043e \u0438\u043b\u0438 \u043f\u043e\u0437\u0434\u043d\u043e \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u0441 \u043e\u0434\u043d\u043e\u0439 \u0438 \u0442\u043e\u0439 \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439. \u0422\u0435\u043a\u0441\u0442 \u043c\u043e\u0434\u0435\u043b\u0438 \u0447\u0438\u0442\u0430\u0435\u043c. \u0413\u0440\u0430\u043c\u043e\u0442\u0435\u043d. \u0418 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0435\u0433\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0430 \u043c\u043e\u0434\u0435\u043b\u044c. \u0417\u0430\u043a\u0430\u0437\u0447\u0438\u043a \u0436\u0430\u043b\u0443\u0435\u0442\u0441\u044f, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043e\u0442\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043e\u0442 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438, \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043f\u0438\u0448\u0443\u0442 \u00ab\u043e\u043f\u044f\u0442\u044c \u0432\u0430\u0448 \u0447\u0430\u0442-\u0431\u043e\u0442\u00bb. \u0425\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u043e \u2014 \u043d\u043e \u043a\u0430\u043a\u0438\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0430\u0442\u0447\u0438 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u043c\u043f\u0442 \u0438\u043b\u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d, \u043d\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e.\u042f \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0441 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u043c\u0438 \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438 \u043e\u043a\u043e\u043b\u043e \u0434\u0432\u0443\u0445 \u043b\u0435\u0442 \u2014 \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b \u0438\u0445 \u0432 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u044b\u0435 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b, \u0438 \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u044e \u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0442\u0435\u043a\u0441\u0442\u044b, \u0438 \u0442\u0435\u043a\u0441\u0442\u044b \u043a\u043e\u043b\u043b\u0435\u0433. \u0417\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u043a\u043e\u043f\u0438\u043b\u0438\u0441\u044c \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u043e \u0442\u043e\u043c, \u043a\u0430\u043a\u0438\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u0434\u0430\u044e\u0442 LLM-\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e, \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043c\u043e\u0434\u0435\u043b\u0438, \u0430 \u043d\u0435 \u043a\u0430\u043a \u00ab\u043d\u0435\u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f\u00bb.\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u043a\u0430\u0436\u0443 \u0434\u0435\u0441\u044f\u0442\u044c \u0441\u0430\u043c\u044b\u0445 \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432, \u043e\u0431\u044a\u044f\u0441\u043d\u044e \u043a\u0430\u0436\u0434\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0435\u0439, \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u2014 \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u0440\u043e\u043c\u043f\u0442\u0430, sampling-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u042d\u0442\u043e \u043d\u0435 \u00ab\u043a\u0430\u043a \u043e\u0431\u043c\u0430\u043d\u0443\u0442\u044c \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u00bb (\u043e\u0431 \u044d\u0442\u043e\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0432 \u043a\u043e\u043d\u0446\u0435, \u0438 \u0442\u0435\u043c\u0430 \u043d\u0435 \u0442\u0430\u043a\u0430\u044f, \u043a\u0430\u043a \u0435\u0451 \u043f\u043e\u0434\u0430\u044e\u0442). \u042d\u0442\u043e \u043f\u0440\u043e \u0442\u043e, \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0445\u043e\u0434 LLM \u043d\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043a\u0430\u043a \u0432\u044b\u0445\u043e\u0434 LLM.\u041e\u0442\u043a\u0443\u0434\u0430 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u043c\u0430\u0440\u043a\u0435\u0440\u044b \u043d\u0430 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f. \u0418\u043d\u0430\u0447\u0435 \u043b\u044e\u0431\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0438\u0445 \u0443\u0431\u0440\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043c\u043f\u0442 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u043b\u0435\u043f\u0443\u044e.\u0411\u043e\u043b\u044c\u0448\u0430\u044f \u044f\u0437\u044b\u043a\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u2014 \u044d\u0442\u043e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442. \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u043d\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439 \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u044e \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0442\u043e\u043a\u0435\u043d \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u044d\u0442\u0438\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 temperature \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u0435\u043c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u0433\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e: \u043f\u0440\u0438 temperature=0 \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d, \u043f\u0440\u0438 temperature=1 \u0432\u044b\u0431\u043e\u0440 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0435\u0435.\u0413\u0440\u0443\u0431\u0430\u044f \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438:import numpy as np def sample_next_token(logits, temperature=1.0, top_p=0.9):    &#171;&#187;&#187;    \u0421\u0435\u043c\u043f\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430 \u0438\u0437 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f logits.    \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b temperature \u0438 top_p \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u00ab\u0436\u0438\u0432\u043e\u0441\u0442\u044c\u00bb \u0442\u0435\u043a\u0441\u0442\u0430.    &#171;&#187;&#187;    # \u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c temperature: \u0447\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435, \u0442\u0435\u043c \u043e\u0441\u0442\u0440\u0435\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435    scaled_logits = logits \/ temperature        # \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 softmax    probs = np.exp(scaled_logits) \/ np.sum(np.exp(scaled_logits))        # Top-p (nucleus) sampling: \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u043a\u0435\u043d\u044b, \u0447\u044c\u044f \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u0430\u044f     # \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043d\u0435 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 top_p    sorted_indices = np.argsort(probs)[::-1]    cumulative_probs = np.cumsum(probs[sorted_indices])    cutoff = np.searchsorted(cumulative_probs, top_p) + 1        # \u0417\u0430\u043d\u0443\u043b\u044f\u0435\u043c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0432\u0441\u0435\u0445 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0437\u0430 \u043f\u043e\u0440\u043e\u0433\u043e\u043c    valid_indices = sorted_indices[:cutoff]    valid_probs = probs[valid_indices]    valid_probs \/= valid_probs.sum()        return np.random.choice(valid_indices, p=valid_probs)\u042d\u0442\u043e \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u0435 \u2014 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d-\u043c\u043e\u0434\u0435\u043b\u044f\u0445 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0435\u0449\u0451 repetition_penalty, frequency_penalty, presence_penalty \u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438. \u041d\u043e \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0442\u0430\u043a\u043e\u0439: \u043c\u043e\u0434\u0435\u043b\u044c \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u0447\u0442\u043e-\u0442\u043e \u0431\u043b\u0438\u0437\u043a\u043e\u0435 \u043a \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0446\u0435\u043d\u0442\u0440\u0443 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0435\u0433\u043e \u043a\u043e\u0440\u043f\u0443\u0441\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u044e\u0442 \u0441\u0430\u043c\u044b\u0435 \u0432\u044b\u0441\u043e\u043a\u0438\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438.\u0427\u0442\u043e \u0432\u0430\u0436\u043d\u043e: \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439 \u0443 \u043c\u043e\u0434\u0435\u043b\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0437 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u0415\u0441\u043b\u0438 \u0432 \u043a\u043e\u0440\u043f\u0443\u0441\u0435 \u043d\u0430 10 \u043c\u0438\u043b\u043b\u0438\u0430\u0440\u0434\u043e\u0432 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0444\u0440\u0430\u0437\u0430 \u00abIt is important to note that\u00bb \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0438\u043b\u043b\u0438\u043e\u043d \u0440\u0430\u0437, \u0430 \u00ab\u041a\u0441\u0442\u0430\u0442\u0438, \u0442\u0443\u0442 \u0432\u0430\u0436\u043d\u0430\u044f \u0432\u0435\u0449\u044c\u00bb \u2014 \u0442\u044b\u0441\u044f\u0447\u0443, \u0443 \u043f\u0435\u0440\u0432\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430 \u0442\u0440\u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c. \u041f\u0440\u0438 \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445 temperature=0.7 \u0438 top_p=0.9 \u0440\u0435\u0434\u043a\u0438\u0435, \u0436\u0438\u0432\u044b\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0439\u0434\u0443\u0442 \u043e\u0442\u0441\u0435\u0447\u0435\u043d\u0438\u0435 \u0438 \u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0443\u0442 \u0432 \u0432\u044b\u0431\u043e\u0440\u043a\u0443.\u041a \u044d\u0442\u043e\u043c\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043b\u043e\u0439 \u2014 post-training. \u041f\u043e\u0441\u043b\u0435 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u0435\u0442\u0440\u0435\u0439\u043d\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u0447\u0430\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043b\u044e\u0434\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 RLHF (Reinforcement Learning from Human Feedback) \u0438\u043b\u0438 DPO. \u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0438\u0437 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u00ab\u0432\u044b\u0431\u0438\u0432\u0430\u044e\u0442\u0441\u044f\u00bb \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b: \u0433\u0440\u0443\u0431\u043e\u0441\u0442\u044c, \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u043d\u043e\u0441\u0442\u044c, \u043e\u0442\u043a\u0430\u0437 \u043e\u0442 \u043e\u0442\u0432\u0435\u0442\u0430. \u041d\u043e \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u0432\u044b\u0431\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u0436\u0438\u0432\u044b\u0435 \u0447\u0435\u0440\u0442\u044b \u0440\u0435\u0447\u0438: \u044d\u043c\u043e\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u043e\u043a\u0440\u0430\u0448\u0435\u043d\u043d\u043e\u0441\u0442\u044c, \u0440\u0435\u0437\u043a\u0438\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b, \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043e\u0431\u043e\u0440\u043e\u0442\u044b.\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: \u043c\u043e\u0434\u0435\u043b\u044f\u043c \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435. \u042d\u0442\u043e \u043d\u0435 \u0431\u0430\u0433, \u044d\u0442\u043e \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043d\u0430 \u043f\u043e\u0441\u0442-\u0442\u0440\u0435\u043d\u0438\u043d\u0433\u0435.\u0414\u0435\u0441\u044f\u0442\u044c \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432, \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u0438\u0447\u0438\u043d\u0443\u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0439\u0434\u0443\u0441\u044c \u043f\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u043c \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430\u043c. \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u2014 \u0447\u0442\u043e \u044d\u0442\u043e, \u043f\u043e\u0447\u0435\u043c\u0443 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442, \u043a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c.1. \u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0440\u043e\u0439\u043a\u0438\u0418\u0418 \u043e\u0431\u043e\u0436\u0430\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438: \u00ab\u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e\u00bb, \u00ab\u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0434\u0435\u0448\u0435\u0432\u043b\u0435, \u043d\u0430\u0434\u0451\u0436\u043d\u0435\u0435\u00bb.\u041f\u0440\u0438\u0447\u0438\u043d\u0430. \u0412 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0445 \u043a\u043e\u0440\u043f\u0443\u0441\u0430\u0445 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0438\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u00abX, Y, and Z\u00bb \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0447\u0440\u0435\u0437\u0432\u044b\u0447\u0430\u0439\u043d\u043e \u0447\u0430\u0441\u0442\u043e \u2014 \u044d\u0442\u043e \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0440\u0438\u0442\u043e\u0440\u0438\u043a\u0438. Vidi, vici, veni, life-liberty-pursuit-of-happiness, blood-sweat-tears. \u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0435 \u043a\u043e\u0440\u043f\u0443\u0441\u0430 \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u0438 \u044d\u0442\u043e \u0447\u0435\u0440\u0435\u0437 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043d\u044b\u0435 \u0442\u0435\u043a\u0441\u0442\u044b \u0438 \u0440\u0443\u0441\u0441\u043a\u0443\u044e \u043f\u0443\u0431\u043b\u0438\u0446\u0438\u0441\u0442\u0438\u043a\u0443 XX \u0432\u0435\u043a\u0430. \u041c\u043e\u0434\u0435\u043b\u044c \u0443\u0447\u0438\u0442\u0441\u044f, \u0447\u0442\u043e \u00ab\u0442\u0440\u0451\u0445\u0447\u043b\u0435\u043d\u043d\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f = \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043a\u043e\u043d\u0435\u0446 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u00bb.\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c. \u0412 \u043f\u0440\u043e\u043c\u043f\u0442\u0435 \u2014 \u044f\u0432\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f: \u00ab\u0438\u0437\u0431\u0435\u0433\u0430\u0439 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u0438\u0437 \u0442\u0440\u0451\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 \u043f\u0430\u0440\u044b \u0438\u043b\u0438 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0435 \u043f\u043e\u043d\u044f\u0442\u0438\u044f\u00bb. \u0412 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u2014 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0430 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430 \\b\\w+, \\w+ \u0438 \\w+\\b \u0438 \u0440\u0443\u0447\u043d\u0430\u044f \u043f\u0440\u0430\u0432\u043a\u0430 \u0447\u0430\u0441\u0442\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432.2. \u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0430\u0431\u0437\u0430\u0446-\u0440\u0435\u0437\u044e\u043c\u0435\u0418\u0418 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u043c \u0430\u0431\u0437\u0430\u0446\u0435\u043c \u2014 \u00ab\u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c\u00bb, \u00ab\u043f\u043e\u0434\u0432\u043e\u0434\u044f \u0438\u0442\u043e\u0433\u00bb, \u00ab\u0432 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u00bb.\u041f\u0440\u0438\u0447\u0438\u043d\u0430. \u041d\u0430 \u043f\u043e\u0441\u0442-\u0442\u0440\u0435\u043d\u0438\u043d\u0433\u0435 \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u0447\u0430\u0442 \u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435, \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u043d\u044b\u0435 \u043e\u0442\u0432\u0435\u0442\u044b. \u042d\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0438 chatGPT-\u0441\u0442\u0430\u0439\u043b\u0430 \u00ab\u0432\u043e\u043f\u0440\u043e\u0441 \u2192 \u043e\u0442\u0432\u0435\u0442\u00bb. \u041d\u043e \u0442\u0430 \u0436\u0435 \u043f\u0440\u0438\u0432\u044b\u0447\u043a\u0430 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043d\u0430 \u044d\u0441\u0441\u0435, \u043f\u043e\u0441\u0442\u044b, \u0441\u0442\u0430\u0442\u044c\u0438, \u0433\u0434\u0435 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0430\u0431\u0437\u0430\u0446 \u043e\u0431\u044b\u0447\u043d\u043e \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u0435\u043d.\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c. \u0412 \u043f\u0440\u043e\u043c\u043f\u0442\u0435: \u00ab\u043d\u0435 \u043f\u0438\u0448\u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u0431\u0437\u0430\u0446; \u0437\u0430\u043a\u043e\u043d\u0447\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043c\u044b\u0441\u043b\u044c\u044e\u00bb. \u0412 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435: \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0430\u0431\u0437\u0430\u0446\u0430 \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0435 \u043c\u0430\u0440\u043a\u0435\u0440\u044b (\u00ab\u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c\u00bb, \u00ab\u0438\u0442\u0430\u043a\u00bb, \u00ab\u0432 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u00bb) \u0438 \u0435\u0433\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441 \u0440\u0443\u0447\u043d\u044b\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u043c.3. \u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0435 \u0445\u0435\u0434\u0436\u0438 \u0438 \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0438\u00ab\u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c\u00bb, \u00ab\u0432\u0430\u0436\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c\u00bb, \u00ab\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u0438\u0437\u043d\u0430\u0442\u044c\u00bb, \u00ab\u0431\u0435\u0437\u0443\u0441\u043b\u043e\u0432\u043d\u043e\u00bb, \u00ab\u043d\u0435\u0441\u043e\u043c\u043d\u0435\u043d\u043d\u043e\u00bb.\u041f\u0440\u0438\u0447\u0438\u043d\u0430. \u0412 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0445 \u043a\u043e\u0440\u043f\u0443\u0441\u0430\u0445 \u043c\u043d\u043e\u0433\u043e \u0430\u043a\u0430\u0434\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u044e\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432, \u0433\u0434\u0435 \u0442\u0430\u043a\u0438\u0435 \u043e\u0431\u043e\u0440\u043e\u0442\u044b \u2014 \u043d\u043e\u0440\u043c\u0430. \u041f\u043b\u044e\u0441 \u043f\u043e\u0441\u0442-\u0442\u0440\u0435\u043d\u0438\u043d\u0433 \u0437\u0430\u043a\u0440\u0435\u043f\u043b\u044f\u0435\u0442 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u043d\u043e\u0441\u0442\u044c \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u043c (\u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0434\u0435\u043b\u0430\u0442\u044c \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u043c\u0438).\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c. \u0421\u043f\u0438\u0441\u043e\u043a \u0445\u0435\u0434\u0436\u0435\u0439-\u0441\u0442\u043e\u043f\u043e\u0432 \u0432 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435. \u0414\u043b\u044f \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e:HEDGE_PATTERNS = [    r&#187;\\b\u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c,?\\s*&#187;,    r&#187;\\b\u0432\u0430\u0436\u043d\u043e (\u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c|\u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c|\u043f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044c),?\\s*&#187;,    r&#187;\\b\u0441\u043b\u0435\u0434\u0443\u0435\u0442 (\u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c|\u043f\u0440\u0438\u0437\u043d\u0430\u0442\u044c|\u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c),?\\s*&#187;,    r&#187;\\b(\u0431\u0435\u0437\u0443\u0441\u043b\u043e\u0432\u043d\u043e|\u043d\u0435\u0441\u043e\u043c\u043d\u0435\u043d\u043d\u043e|\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e|\u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f),?\\s*&#187;,    r&#187;\\b\u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\\s+(\u043c\u043e\u0436\u0435\u0442|\u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d|\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e)&#187;,]  def remove_hedges(text: str) -&gt; str:    &#171;&#187;&#187;\u0423\u0431\u0438\u0440\u0430\u0435\u0442 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0447\u0430\u0441\u0442\u044b\u0435 \u0418\u0418-\u0445\u0435\u0434\u0436\u0438 \u0438\u0437 \u0442\u0435\u043a\u0441\u0442\u0430.&#187;&#187;&#187;    import re    for pattern in HEDGE_PATTERNS:        # \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430 \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u0431\u0443\u043a\u0432\u044b        text = re.sub(pattern, &#171;&#187;, text, flags=re.IGNORECASE)        # \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0431\u0443\u043a\u0432\u0443 \u043f\u043e\u0441\u043b\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f        text = re.sub(r&#187;(^|\\.\\s+)([\u0430-\u044f])&#187;,                       lambda m: m.group(1) + m.group(2).upper(),                       text)    return text\u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u0435\u043d \u2014 \u043c\u043e\u0436\u0435\u0442 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0445\u0435\u0434\u0436, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u0435\u043d \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u2014 \u043d\u043e \u043a\u0430\u043a \u043f\u0435\u0440\u0432\u0430\u044f \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.4. \u00ab\u0412 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u043c \u043c\u0438\u0440\u0435\u00bb \u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u043b\u043a\u0438\u0421\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0435 \u0444\u0440\u0430\u0437\u044b \u0430\u0431\u0437\u0430\u0446\u0435\u0432 \u0442\u0438\u043f\u0430 \u00ab\u0432 \u044d\u043f\u043e\u0445\u0443 \u0446\u0438\u0444\u0440\u043e\u0432\u0438\u0437\u0430\u0446\u0438\u0438\u00bb, \u00ab\u043d\u0435 \u0441\u0435\u043a\u0440\u0435\u0442, \u0447\u0442\u043e\u00bb, \u00ab\u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u00bb.\u041f\u0440\u0438\u0447\u0438\u043d\u0430. \u042d\u0442\u043e \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0430\u043a\u0430\u0434\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u0438 \u043f\u0440\u0435\u0441\u0441-\u0440\u0435\u043b\u0438\u0437\u043e\u0432. \u0412 \u043a\u043e\u0440\u043f\u0443\u0441\u0430\u0445 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u0445 \u043c\u043d\u043e\u0433\u043e (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432 \u043d\u043e\u0432\u043e\u0441\u0442\u043d\u044b\u0445 \u0430\u0440\u0445\u0438\u0432\u0430\u0445 \u0438 \u043d\u0430\u0443\u0447\u043d\u043e-\u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u0430\u0445), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u0445 \u043a\u0430\u043a \u00ab\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0441\u0442\u0430\u0440\u0442\u00bb.\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c. \u0412 \u043f\u0440\u043e\u043c\u043f\u0442\u0435: \u00ab\u043d\u0430\u0447\u0438\u043d\u0430\u0439 \u0430\u0431\u0437\u0430\u0446\u044b \u0441 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u0430 \u0438\u043b\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0431\u0435\u0437 \u043e\u0431\u043e\u0431\u0449\u0430\u044e\u0449\u0438\u0445 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043e\u043a\u00bb. \u0412 \u043f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435: blacklist \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0440\u0430\u0437 \u0438 \u0438\u0445 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0438.5. \u0421\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u044f \u00ab\u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \/ \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b\u00bb\u041f\u0440\u0438 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0438 \u0441\u043f\u043e\u0440\u043d\u044b\u0445 \u0442\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u0430\u0451\u0442 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443: \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0437\u0430, \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u043e\u0442\u0438\u0432, \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u043e \u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0438\u0441\u0441\u0435.\u041f\u0440\u0438\u0447\u0438\u043d\u0430. \u0417\u0434\u0435\u0441\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u0441\u0442-\u0442\u0440\u0435\u043d\u0438\u043d\u0433 \u0434\u043e\u043c\u0438\u043d\u0438\u0440\u0443\u0435\u0442. \u041c\u043e\u0434\u0435\u043b\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0443\u0447\u0430\u0442 \u043d\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0432 \u0441\u043f\u043e\u0440\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u0445, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043f\u043e\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u044d\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0438\u0441\u043a\u043e\u0432. Anthropic \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u044d\u0442\u043e \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u043e\u0439 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430\u043c, OpenAI \u2014 model neutrality. \u042d\u0442\u043e \u0441\u043e\u0437\u043d\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0438 \u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438 \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u043c.\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0442\u0435\u043a\u0441\u0442 \u0441 \u0430\u0432\u0442\u043e\u0440\u0441\u043a\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0435\u0439 \u2014 \u043f\u043e\u043b\u0435\u0437\u043d\u0435\u0435 \u0434\u0430\u0432\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u043c\u043f\u0442 \u00ab\u043f\u0435\u0440\u0441\u043e\u043d\u0443\u00bb: \u00ab\u0442\u044b \u043f\u0438\u0448\u0435\u0448\u044c \u043e\u0442 \u043b\u0438\u0446\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0430 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 X, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0432\u0451\u0440\u0434\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u0442, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Y\u00bb. \u0422\u043e\u0433\u0434\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0432\u043d\u0443\u0442\u0440\u0438 \u0440\u043e\u043b\u0438. \u0418\u043b\u0438 \u2014 \u043f\u043e\u0441\u043b\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u2014 \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0443\u0440\u0443 \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0437\u0430\u043c\u0435\u043d\u0438\u0432 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u044e \u043d\u0430 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435.6. \u0418\u0434\u0435\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u041a\u0430\u0436\u0434\u043e\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0433\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0431\u0435\u0437\u0443\u043f\u0440\u0435\u0447\u043d\u043e. \u0414\u043b\u0438\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b, \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0435 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u044b. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u00ab\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445\u00bb \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u0434\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0430.\u041f\u0440\u0438\u0447\u0438\u043d\u0430. \u041a\u043e\u0440\u043f\u0443\u0441\u044b \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u2014 \u044d\u0442\u043e \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0442\u0435\u043a\u0441\u0442\u044b. \u041a\u043d\u0438\u0433\u0438, \u0433\u0430\u0437\u0435\u0442\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u0432\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u044f. \u0421\u043f\u043e\u043d\u0442\u0430\u043d\u043d\u043e\u0439 \u043f\u0438\u0441\u044c\u043c\u0435\u043d\u043d\u043e\u0439 \u0440\u0435\u0447\u0438 \u0442\u0430\u043c \u043c\u0430\u043b\u043e (\u0444\u043e\u0440\u0443\u043c\u044b \u0438 Reddit \u0435\u0441\u0442\u044c, \u043d\u043e \u043e\u043d\u0438 \u0443\u0436\u0435 \u0432\u0437\u0432\u0435\u0448\u0435\u043d\u044b \u0432\u043d\u0438\u0437 \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u044f\u0445). \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u0447\u0438\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u00ab\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u00bb, \u0430 \u043d\u0435 \u00ab\u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u00bb.\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c. \u041f\u043e\u0441\u0442\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b\u043c\u0438 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u044f\u043c\u0438: \u0438\u043d\u043e\u0433\u0434\u0430 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u0430\u043f\u044f\u0442\u0443\u044e \u043d\u0430 \u0442\u043e\u0447\u043a\u0443 \u0434\u043b\u044f \u0434\u0440\u0430\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0430, \u0438\u043d\u043e\u0433\u0434\u0430 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0434\u043d\u043e \u0441\u043b\u043e\u0432\u043e \u0430\u0431\u0437\u0430\u0446\u0435\u043c. \u042d\u0442\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u2014 \u043e\u0431\u044b\u0447\u043d\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0438\u043b\u0438 \u0432\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0441 \u044f\u0432\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 \u00ab\u0434\u043e\u0431\u0430\u0432\u044c \u0441\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u043e\u043b\u044c\u043d\u043e\u0441\u0442\u0438\u00bb.7. \u041e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u0430 \u0430\u0431\u0437\u0430\u0446\u0435\u0432\u0418\u0418-\u0442\u0435\u043a\u0441\u0442\u044b \u0438\u043c\u0435\u044e\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0437\u043a\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u043b\u0438\u043d \u0430\u0431\u0437\u0430\u0446\u0435\u0432 \u2014 \u043e\u0431\u044b\u0447\u043d\u043e 3-5 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043a\u0430\u0436\u0434\u044b\u0439, \u0441 \u0440\u0435\u0434\u043a\u0438\u043c\u0438 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u044f\u043c\u0438.\u041f\u0440\u0438\u0447\u0438\u043d\u0430. \u042d\u0442\u043e \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d, \u0432\u044b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0438\u0437 \u00ab\u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0430\u0431\u0437\u0430\u0446\u0430\u00bb \u0432 \u043a\u043e\u0440\u043f\u0443\u0441\u0430\u0445. \u0423 \u0436\u0438\u0432\u043e\u0433\u043e \u0430\u0432\u0442\u043e\u0440\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u043b\u0438\u043d \u0448\u0438\u0440\u043e\u043a\u043e\u0435: \u0435\u0441\u0442\u044c \u0430\u0431\u0437\u0430\u0446\u044b \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0435\u0441\u0442\u044c \u0438\u0437 \u0434\u0435\u0441\u044f\u0442\u0438. \u0423 \u043c\u043e\u0434\u0435\u043b\u0438 \u2014 \u0443\u0437\u043a\u043e\u0435.\u041a\u0430\u043a \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c. \u041c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0438\u0447\u0435\u0441\u043a\u0438:import numpy as np  def paragraph_length_variance(text: str) -&gt; tuple[float, float]:    &#171;&#187;&#187;    \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0440\u0435\u0434\u043d\u044e\u044e \u0434\u043b\u0438\u043d\u0443 \u0430\u0431\u0437\u0430\u0446\u0430 (\u0432 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445) \u0438 \u0435\u0451 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435.    \u0415\u0441\u043b\u0438 std\/mean &lt; 0.3, \u0442\u0435\u043a\u0441\u0442 \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d LLM.    &#171;&#187;&#187;    paragraphs = [p.strip() for p in text.split(&#171;\\n\\n&#187;) if p.strip()]    sentence_counts = [        len([s for s in p.split(&#171;.&#187;) if s.strip()])         for p in paragraphs&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-479194","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/479194","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=479194"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/479194\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=479194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=479194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=479194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}