Start with the unit and the labeling task

Data annotation attaches information to an example so a model can learn from it or so a human can evaluate a model. Decide what one example represents and what the label should capture. A whole message can have a topic, a few words can mark a date, and a rectangle can locate an object in an image. Each task needs its own instructions.

Label an entire message

For a fictional support dataset, assign each message to billing, delivery, returns or needs review. A note that says “My parcel arrived, but I was charged twice” can be labeled billing under a rule that the action requested determines the topic. Write that rule down so two people can apply it independently.

Mark a span within the text

In “Send the revised draft by Friday,” an annotator might mark “Friday” as the deadline phrase. Decide in advance whether to include nearby words such as “by” in the span. Add an example with a missing deadline to show when there is nothing to mark. These boundary decisions help keep the dataset consistent.

Describe how to mark an object

In a practice photo of fruit on a desk, draw a box around the visible part of each apple. Write an instruction for partly hidden objects and show examples. If your project only needs to know whether an apple is present, a whole-image label may be sufficient and faster to collect.

Measure agreement on a pilot

Ask two people to label the same ten fictional examples and compare their choices. Discuss where the instructions led to different results and add an example for the edge case. Keep a dated copy of the guide. After labeling, manage separate training and evaluation sets to preserve a fair model check.

Related guides