--- title: Two-Level Sentiment Analysis of X / Twitter posts type: templates category: Community Contributions cat: community order: 1004 meta_title: Two-Level Sentiment Analysis of X / Twitter posts Data Labeling Template meta_description: Template for two-level sentiment analysis of x / twitter posts with Label Studio community: true community_author: luarmr community_contributors: bmartel, redeipirati community_repo: awesome-label-studio-config github_repo: humanSignal/awesome-label-studio-config report_bug_url: https://github.com/humanSignal/awesome-label-studio-config/issues/new?template=bug_report.yml&config-name=two-level-sentiment-analysis-of-x-twitter-posts&title=Bug%20in%20two-level-sentiment-analysis-of-x-twitter-posts&body=I%20found%20a%20bug%20in%20the%20two-level-sentiment-analysis-of-x-twitter-posts%20template.%0A%0A%23%23%20Steps%20to%20Reproduce%0A1.%20...%0A2.%20...%0A%0A%23%23%20Expected%20Behavior%0A...%0A%0A%23%23%20Actual%20Behavior%0A...%0A%0A%23%23%20Environment%0A-%20Label%20Studio%20Version:...%0A-%20Browser%20(if%20applicable):...%0A-%20Operating%20System:...%0A%0A%23%23%20Additional%20Context%0A...%0A repo_url: https://github.com/HumanSignal/awesome-label-studio-config/tree/main/label-configs/two-level-sentiment-analysis-of-x-twitter-posts --- This labeling config lets you assign a sentiment (Positive, Negative, or Neutral) to X / Twitter post. After picking a sentiment, a second-level classification appears to categorize the text as Descriptive, Emotional, Mixed, Ambigous, or Sarcams. The labeling interface is styled to look like a X / Twitter post. ## Labeling Configuration ```html
``` ## About the labeling configuration All labeling configurations must be wrapped in [View](/tags/view.html) tags. This configuration uses the following tags: - [Text](/tags/text.html) - [Choices](/tags/choices.html) - [Choice](/tags/choice.html) - [View](/tags/view.html) - [Header](/tags/header.html) ## Usage Instructions - **Conditional Choices**: The second set of choices (other-props) only appears after selecting a sentiment. This is done with: ```xml visibleWhen="choice-selected" whenTagName="sentiment" ``` ---