AiPromptss
Back to browse

Four-tuple annotation for aspect-level sentiment analysis

Task: Analyze a restaurant review and select the most suitable pseudo-label from the provided options (only codename required). If the review is unrelated to t…

Added May 19, 20260 views0 copies
Prompt
Task: Analyze a restaurant review and select the most suitable pseudo-label from the provided options (only codename required). If the review is unrelated to the restaurant (e.g., about beauty salon, medical, repair, or hotel), select **"Irrelevant Domain"**. If no option fits, including cases where the review doesn't express any sentiment or the sentiment is unclear, choose **"No Sentiment or No Appropriate Option"**.

Understand the Pseudo-label Components:
- Aspect Category: Consists of an entity label and attribute label, where the **entity** specifies the object (e.g., "FOOD", "SERVICE", "AMBIENCE"), and the **attribute** specifies the characteristic (e.g., "GENERAL", "STYLE_OPTIONS"). These combinations indicate specific aspects, such as `{SERVICE#GENERAL}`, `{FOOD#STYLE_OPTIONS}`. Categories must match the entity and attribute spaces as defined in the ABSA guidelines.
- Sentiment Polarity: Indicates the sentiment as **positive**, **negative**, or **neutral**. Neutral is used for mild sentiments that do not convey strong opinion (e.g., "Food was okay, nothing great"). Negative or positive sentiments should be assigned only if a clear preference or dissatisfaction is expressed.

- Aspect Term: The specific term in the review text that refers to the aspect. For explicit mentions, use the word directly, such as "food" or "service". If the aspect is implied rather than directly stated, use **"NULL"** to indicate an inferred reference.
- Opinion Term: The words or phrases expressing sentiments in the review. If the sentiment is implied without explicit sentiment-bearing words, use **"NULL"**. This term should reflect clear sentiment words (e.g., "excellent", "slow", "bad").

Key Points to Remember:
1. Relevance Check: Before proceeding, ensure that the review is relevant to restaurant aspects and expresses a sentiment. If it is not, select "Irrelevant Domain."
2. Aspect Matching: If multiple aspects are discussed, try to match each sentiment with the appropriate aspect based on context (e.g., "Service was slow, but the food was delicious" requires separate labels for SERVICE and FOOD aspects).
3. Sentiment Strength: For weak or vague sentiments, use "neutral". Only assign "positive" or "negative" if there is a clear sentiment direction.
4. Multiple Sentiment Expressions: If a sentence contains multiple sentiments towards the same aspect, choose the sentiment that best represents the reviewer's overall tone.

Examples for Reference:
1. Review: "The wait time was long, but the food was worth it."
   - Pseudo-label options:
     - {SERVICE#GENERAL, negative, "wait time", "long"}
     - {FOOD#QUALITY, positive, "food", "worth it"}
   
2. Review: "The ambiance was cozy, but the portions were small."
   - Pseudo-label options:
     - {AMBIENCE#GENERAL, positive, "ambiance", "cozy"}
     - {FOOD#STYLE_OPTIONS, negative, "portions", "small"}

Your Task:
For each review, select the best pseudo-label that captures the sentiment, aspect category, aspect term, and opinion term. Provide your answer as follows:
{
  "Rationale": "Your detailed rationale for selecting the best choice, explaining the sentiment, aspect, and opinion match.",
  "Best Choice": "The pseudo-label you chose",
  "Confidence": "Your confidence level (1-5)"
}

Example Task:
1. Review: "There was only 1 time that food came in under a half hour."
   - Pseudo-label options:
     - A. {SERVICE#GENERAL, negative, "NULL", "NULL"}
     - B. {FOOD#STYLE_OPTIONS, negative, "food", "NULL"}
     - C. {SERVICE#GENERAL, neutral, "NULL", "NULL"}
     - D. {FOOD#STYLE_OPTIONS, neutral, "food", "NULL"}

Replace text in [BRACKETS] with your own values before pasting.