Text annotation example: classification, sentiment and labelling rules
For experts4 min read
A text annotation example is the quickest way to see what the work is: you read a piece of text and assign it a label, such as positive or negative, a topic, or an intent. The skill is applying the same rule every time, even when the text is messy.
Types of text annotation, with a text annotation example for each
Label Studio's template list for language tasks includes sentiment text classification, named entity recognition, relation extraction, summarisation and question answering. Most text annotation work fits one of these.
Source: Label Studio templates(opens in a new tab)
| Task | Text | Label |
|---|---|---|
| Topic | The central bank raised its rate today. | Finance |
| Sentiment | The delivery was late and the box was damaged. | Negative |
| Intent | Can I change my flight to Friday? | Booking change |
| Toxicity | A message containing abuse aimed at a person | Abusive |
| Language | Habari za asubuhi | Swahili |
| Relation | Ada works for Delta Bank. | Ada: employee of: Delta Bank |
Sentiment analysis labels and how to apply them
Most sentiment sets use three labels: positive, negative and neutral. Some add mixed. The guideline will say if you label the feeling of the writer, or the tone of the text about a product. These differ. The sentence The film was long, but the ending moved me has two feelings, and a three-label scheme without a mixed class forces a choice.
When you must choose, ask what the writer wants the reader to conclude. Here, the ending is the point, so positive is reasonable. Write a short reason if the tool allows it.
A routine for each item
- Read the whole text once. Do not label from the first sentence.
- Check the guideline for the label list and its definitions.
- Choose the label that fits the main point of the text.
- If two labels fit, use the tiebreak rule from the guideline.
- Add a flag for texts you cannot label, such as wrong language or unreadable.
Unclear and mixed texts
- Sarcasm: The service was wonderful, I only waited three hours. The words are positive and the meaning is negative. Follow the guideline on whether sarcasm counts.
- Questions: a question can express a complaint. Label what the text communicates.
- Short texts: a single word, such as fine, gives little to go on. Many projects have an unclear label for this.
- Mixed languages: label the whole text if you understand it. Flag it if you do not.
- Missing context: do not assume facts outside the text.
Consistency matters more than perfect
A model learns from patterns. If you label the same kind of text positive on Monday and neutral on Friday, the model receives two answers to one question. Keep a list of borderline cases and the label you chose for each. When the same case appears, apply the same answer.
Reviewers often measure how often two annotators agree. When agreement is low on one label, the guideline is usually unclear about it, and the team fixes the guideline.
Writing reasons
Some projects ask for a written reason with each label. Keep it to a clause that cites the words that decided the label. For example: Negative because of late and damaged. This lets a reviewer check your work in seconds, and it helps the team find labels that need a better definition.
Sensitive content
Toxicity and hate speech tasks put harmful text in front of you. Read the guideline on how to label it, and keep your own opinions out of the label. You are marking what the text is, not your opinion of it. If a project exposes you to distressing material, take breaks and use the support route it provides.
Sentiment and bias
Dialect and slang can look negative to an annotator who does not use them. A phrase that is strong praise among young speakers may read as an insult to someone else. If you do not understand an expression, flag it instead of guessing. People who know the language and community are a main reason annotation projects hire experts instead of general workers.
Using examples from the guideline
Good guidelines carry an example for every label, and bad ones carry only definitions. Read the examples before the definitions. If an item in front of you looks like an example under a different label, stop and ask yourself what separates them. That gap is usually the real rule.
Keep a personal mini guide with a line per label and one tricky example each. It takes ten minutes to build and removes a lot of second guessing.
Speed without losing accuracy
Short texts invite fast clicking. Do a trial run of twenty items with no time pressure, then compare your pace with the target. If the project expects more than your careful pace allows, tell the team instead of cutting corners. Rushed labels teach the model the wrong thing, and reviewers can usually see the pattern in a batch.
Check a few of your own labels at random after each session. Pick five, reread the text, and see if you would give the same label now. Drift is easy to catch when you look for it.
Curatrain's experts do labelled data with written reasons, and linguists take graded tests by language and level. Every score is kept.