{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ru/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Анализ тональности","projectTitle":"Tisane Developer Documentation","description":"Tisane is an NLP platform, used for content moderation & more.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"анализ-тональности","__idx":0},"children":["Анализ тональности"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Анализ тональности отвечает на вопрос, относится ли автор к чему-либо положительно или отрицательно. Случаи обнаруженных настроений регистрируются в разделе ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[" sentiment_expressions"]},"; ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[" polarity"]}," определяет, является ли настроение:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["positive"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["negative"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mixed"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"дополнительные-настройки","__idx":1},"children":["Дополнительные настройки"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["explain"]}," - если",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[" true"]},", включает в себя объяснение для пометки"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["snippets"]}," — если ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}," , включает фрагмент, отвечающий за настроение"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["document_sentiment"]}," — если ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]},", общая тональность всего текста представлена в атрибуте корневого уровня ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sentiment"]}," ."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"что-такое-аспектный-анализ-тональности-absa","__idx":2},"children":["Что такое аспектный анализ тональности (ABSA)?"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Википедия определяет ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://en.wikipedia.org/wiki/Sentiment_analysis#Feature/aspect-based"},"children":["ABSA"]}," как подход, который определяет тональность для конкретных аспектов, упомянутых в обзоре, а не присваивает единую оценку тональности всему документу или посту."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["По сути, аспектный анализ тональности делает для анализа тональности то же, что цветное телевидение сделало для черно-белого телевидения: он добавляет глубину и ясность."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Рассмотрим этот обзор:"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["«Завтрак был немного безвкусным, но отель расположен недалеко от основных достопримечательностей»."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Владельцу отеля, который ищет практически применимую информацию, необходимо знать, что:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Отношение к ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["food"]}," является ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["negative"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Отношение к ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["location"]}," является ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["positive"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Единый показатель тональности, например 0,14 или -0,57, здесь не имел бы смысла. При объединении множества разносторонних отзывов такие оценки создают вводящую в заблуждение картину, которая не отражает реальных настроений клиентов."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Рекомендуется установить для настройки ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["format"]}," значение ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["review"]},", чтобы более настойчиво искать признаки тональности."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"пример","__idx":3},"children":["Пример"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Запрос:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"language\":\"en\",\n  \"content\":\"The breakfast was a bit tasteless but the hotel is close to the major attractions\",\n  \"settings\": \n  {\n    \"format\":\"review\", \"snippets\":true, \"document_sentiment\":true\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ответ:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n\t\"text\": \"The breakfast was a bit tasteless but the hotel is close to the major attractions\",\n\t\"sentiment\": 0.12345679012345679,\n\t\"sentiment_expressions\": [\n\t\t{\n\t\t\t\"sentence_index\": 0,\n\t\t\t\"offset\": 0,\n\t\t\t\"length\": 33,\n\t\t\t\"text\": \"The breakfast was a bit tasteless\",\n\t\t\t\"polarity\": \"negative\",\n\t\t\t\"reasons\": [\n\t\t\t\t\"tasteless\"\n\t\t\t],\n\t\t\t\"targets\": [\n\t\t\t\t\"food\"\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"sentence_index\": 0,\n\t\t\t\"offset\": 38,\n\t\t\t\"length\": 43,\n\t\t\t\"text\": \"the hotel is close to the major attractions\",\n\t\t\t\"polarity\": \"positive\",\n\t\t\t\"targets\": [\n\t\t\t\t\"location\"\n\t\t\t]\n\t\t}\n\t]\n}\n","lang":"json"},"children":[]}]},"headings":[{"value":"Анализ тональности","id":"анализ-тональности","depth":1},{"value":"Дополнительные настройки","id":"дополнительные-настройки","depth":2},{"value":"Что такое аспектный анализ тональности (ABSA)?","id":"что-такое-аспектный-анализ-тональности-absa","depth":2},{"value":"Пример","id":"пример","depth":2}],"frontmatter":{"seo":{"title":"Анализ тональности"}},"lastModified":"2025-07-07T02:26:37.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ru/guides/features/sentiment","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}