{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/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":["Wikipediaは、",{"$$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":["食"]},"に対する感情は否定的なものです。**"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["立地"]},"に対する感情は肯定的なものです。**"]}]},{"$$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":"/ja/guides/features/sentiment","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}