Sub topic 3
Writing Annotation Guidelines
This chapter assumes you know basic Python, common NLP tasks such as text classification and named entity recognition, and basic probability. You also assume that annotation means assigning labels to text items according to a shared task definition.
Turn the task into decisions
Annotation guidelines are operational instructions for applying a label schema consistently. A label schema is the set of labels and their meanings. Good guidelines answer the question an annotator will ask while working: “Which label applies to this example, and what should I do when the evidence is unclear?”
Start with the annotation unit. State exactly what an annotator labels:
- A whole document, sentence, message, token, or entity span.
- Whether the surrounding context is available.
- Whether an item can receive one label, several labels, or an “unclear” label.
- Whether annotators may use outside information.
Then define each label with a positive rule and an exclusion rule. For example, a sentiment task might use these rules:
| Label | Assign when | Do not assign when |
|---|---|---|
| positive | The writer expresses approval or a favorable opinion | The text only states a fact without evaluation |
| negative | The writer expresses disapproval or an unfavorable opinion | A negative word describes something unrelated to the writer’s opinion |
| neutral | The text gives information without clear approval or disapproval | A clear positive or negative judgment is present |
Avoid definitions based only on vague words such as “good,” “relevant,” or “important.” Explain what evidence an annotator should look for.
Specify boundaries and edge cases
Most disagreements occur at the edges of categories. Add rules for negation, sarcasm, quoted text, mixed opinions, abbreviations, spelling errors, and missing context. For named entity recognition, specify whether the span includes titles, punctuation, possessives, and nested entities.
Use a decision order when rules can conflict. For example:
- Read the complete item and its allowed context.
- Check whether the item meets an exclusion rule.
- Apply the most specific matching label.
- Use “unclear” only when the evidence remains insufficient.
- Record a short reason for unusual decisions.
Examples should include both clear cases and difficult cases. Each example needs the text, the assigned label, and a brief explanation. Counterexamples are especially useful because they show why a tempting label is wrong.
Revise guidelines after a pilot
Do not treat the first draft as final. Ask annotators to label a small shared sample independently. Collect disagreements and group them by cause, such as unclear definitions, missing edge-case rules, or inconsistent span boundaries. Revise the guideline, then document the version used for each annotation round.
Keep examples stable when possible. If an example changes meaning because the guideline changed, mark it as a new version rather than silently replacing it. This makes later agreement results interpretable.
A useful guideline template
- Task and annotation unit
- Available context and allowed external knowledge
- Label definitions and exclusion rules
- Decision order
- Boundary and edge-case rules
- Positive, negative, and difficult examples
- Unclear-item procedure
- Version number and change history
Exercise
A sentiment guideline says, “Assign positive when the text is good.” What is the main problem, and how would you improve it?
Show answer
“Good” is vague and does not identify observable evidence. Replace it with a rule such as, “Assign positive when the writer explicitly approves of, recommends, or expresses satisfaction with the subject,” then add exclusion rules and examples.