ExplainerLabeling and annotation

Data labeling vs data annotation: label types for text and documents

How standards and tools use the two words, and the label types for text and documents: classes, entities and spans, relationships, ratings, page regions and tables, with their storage formats.

Cover of the full report: Data labeling vs data annotation: label types for text and documents
The research behind this article, with every source listed. 19 pages.

Key points

From the Summary of the full report

  1. The sources reviewed use the two words in overlapping senses. Standards and glossaries treat annotation as attaching information to data and a label as the value a model learns to predict [1, 3, 4], and several vendor guides and tools use the two words for the same work [6, 12].
  2. The EU AI Act lists annotation and labelling as separate data-preparation operations in Article 10 and defines neither word [2]. No source reviewed fixes one industry-wide difference between data labeling and data annotation.
  3. Text label types fall into four groups: classes on a whole record, entities and spans inside it, links between its parts (relations, coreference between mentions of the same entity, and events), and ratings or preferences on a response [11, 13, 28].
  4. Span labels differ in their overlap rules. CoNLL-2003 assumed non-overlapping entities and usually annotated only the top-level one [18], while roughly 17% of entities in the GENIA corpus sit inside another entity [19].
  5. A relation label set needs an explicit label for no relation. In TACRED, 78.7% of the 119,474 examples carry it [22].

The question of data labeling vs data annotation has a short answer in the standards and documentation reviewed here. Many guides and tools use the two words for the same work [6, 12]. Where a source separates them, annotation is the wider act of attaching information to data, and a label is the value a model learns to predict [3, 4]. The choice that changes a project is the label type: a class on a whole record, a span inside it, a link between two parts, a rating on a response or a region on a page.

This explainer sets out those label types for text and documents, from the standard, tool documentation or dataset paper that defines each, and how each is stored.

Data labeling vs data annotation: how the sources use the words

The W3C Web Annotation Data Model, a 2017 Recommendation, treats an annotation as a set of connected resources, typically a body and a target, where the body is related to the target [1]. Classifying is one of its 13 listed motivations, next to tagging, identifying, assessing and commenting [1]. In corpus linguistics, Geoffrey Leech describes annotation as "adding interpretative linguistic information to a corpus", with word-class tags, or labels, as one common type [5].

ISO/IEC 22989:2022, as quoted by itSMF Switzerland, defines data annotation as attaching descriptive information to data "without any change to that data", in the form of metadata, labels and anchors [3]. It defines a label as the "target variable assigned to a sample" [3]. Google's machine learning glossary calls a label the "answer" or "result" portion of an example, and it has no entry for annotation [4].

Vendors and tools often merge the two. IBM's explainer opens with "Data labeling, or data annotation" [6]. Label Studio's export schema describes its annotation results as those "of the labeling or annotation task" [12]. A SageMaker Ground Truth labeling job writes its entity spans under an "annotations" object [10]. AWS's own explainer draws the line elsewhere: the separate responses for one item are "called 'annotations'", and they are consolidated "into a single label" [7].

The EU AI Act lists "annotation, labelling, cleaning, updating, enrichment and aggregation" as separate data-preparation operations in Article 10, and Article 3 defines neither word [2]. No source reviewed fixes one industry-wide difference. Read each glossary for its own sense, and write the label types into the project's schema.

Labels on the whole record: classes and multi-label sets

A class label puts the whole item in one category. Azure Machine Learning's text labeling separates three task shapes: multi-class applies "only a single label to each piece of text", multi-label applies "one or more labels", and named entity recognition labels words inside the text [11].

Published sets show both shapes. GoEmotions labels about 58,000 English comments for "one or more of 27 emotion(s) or Neutral" [26]. SNLI labels 570,152 sentence pairs as entailment, contradiction or neutral, and its validated pairs with no three-vote majority, about 2%, carry the placeholder "-" [25]. Token-level classes work the same way: Universal Dependencies defines 17 part-of-speech tags [16].

Labels inside the record: entities and spans

An entity label marks a stretch of text and gives it a type. SageMaker's guide describes named entity recognition as locating noun phrases and categorizing each with a label such as person or organization [9]. CoNLL-2003 used four types: persons, organizations, locations and miscellaneous names [18]. An entity counts as correct "only if it is an exact match" [18].

Span rules differ on overlap. CoNLL-2003 assumes entities are "non-recursive and non-overlapping", and where one entity sat inside another, usually only the top-level entity was annotated [18]. Finkel and Manning report that roughly 17% of entities in the GENIA corpus are embedded in another entity, and nearly half in the AnCora corpus [19]. spaCy's entity recognizer accepts only non-overlapping spans and throws an error otherwise [15]. Its span categorizer labels "potentially overlapping spans", each with zero or more labels [14].

Spans can also be long and sparse. CUAD labels 13,101 clauses in 510 contracts across 41 categories, and on average only about 0.25% of a contract is highlighted for each label [35]. How models score on those clause spans is covered in what benchmarks show about LLM contract review accuracy.

Labels between parts: relationships, coreference and events

A relation label links two marked parts and names the link. In the brat standoff format, a binary relation has an ID, a type and its arguments, and unlike an event it marks no trigger text [13]. An event has a type, a trigger (the text stating the event) and arguments [13]. Equivalence relations group annotations that refer to the same real-world entity, which is one way to mark coreference [13].

A relation schema needs a label for no link. TACRED has 119,474 examples and 42 relation labels, and 78.7% of its examples are negative, labeled no relation [22]. Relations also cross sentence boundaries. In DocRED, at least 40.7% of the relational facts can only be extracted from multiple sentences, and its annotation marks entities and coreference before relations [23]. The CoNLL-2012 shared task linked coreferring mentions into entity and event chains [21].

Labels on a response: ratings and preferences

A rating puts a score on one response. SummEval rated summaries on a Likert scale from 1 to 5 for coherence, consistency, fluency and relevance, which gave 12,800 summary-level annotations [27].

A preference compares responses. In the instruction-following study by Ouyang and colleagues, responses were ranked in sets of 4 to 9 per prompt, a ranking of K responses produced K choose 2 pairwise comparisons, and ties were dropped [28]. Each response was also rated on a 1 to 7 scale, with binary flags such as one for hallucination [28]. Hugging Face's TRL library stores a preference as a prompt with a chosen and a rejected completion, and an unpaired preference as one completion with a true or false label [29].

Document label types: page regions, form fields and tables

Documents add position. DocLayNet labels 80,863 pages with bounding boxes in 11 classes, from Caption to Title [31]. Its authors excluded scanned documents wherever possible, because rotated or skewed pages do not allow annotation with rectangular boxes [31]. Predicted boxes are scored against ground-truth boxes with intersection over union (IoU) [4].

FUNSD shows a form label in full. Each entity in its 199 scanned forms has an identifier, a label (question, answer, header or other), a bounding box, its words and directed links, such as from a question to its answer [30]. Tables are labeled as structure: PubTabNet pairs 568k table images with HTML and scores recognition with TEDS, a tree-edit-distance similarity [33]. Labels can also come from a document's own markup. PubLayNet matched the XML and content of over 1 million PDF articles to annotate over 360 thousand page images [32].

Scoring an extraction tool against labeled answer keys is the subject of how to test document extraction accuracy before you buy.

How the label types are stored

Three storage patterns recur.

  • Standoff offsets. brat keeps annotations in a separate .ann file and never modifies the text. Offsets start at 0 and exclude the character at the end offset [13]. The W3C Text Position Selector counts the same way [1]. SageMaker's output gives each entity a startOffset and an endOffset in Unicode positions [10].
  • Token columns. CoNLL-2003 puts one word per line with four fields: the word, its part-of-speech tag, its chunk tag and its entity tag [18]. Its IOB tags come from Ramshaw and Marcus (1995), where I marks a word inside a chunk, O a word outside, and B the first word of a chunk that directly follows another [17, 18]. CoNLL-U uses 10 tab-separated fields per word [38].
  • JSON records. Label Studio exports JSON, CoNLL2003, COCO and YOLO, and its documentation converts a CoNLL2003 export to spaCy's format with spacy convert [12]. FUNSD stores each link as an [id_from, id_to] pair [30].

Offsets count characters and IOB tags count tokens [13, 18], so the schema states which convention a delivery uses.

What to settle before labeling starts

Klie, Eckart de Castilho and Gurevych separate the two documents a labeling task needs. The annotation scheme "defines the annotation labels", and the guidelines "describe how to decide when to apply which label" [8]. The label type sets much of what the scheme has to say:

  • the unit: a whole record, a token, a span, a pair of texts, a response or a page region
  • one label or several per unit, and whether spans may overlap or nest
  • a label for nothing found, such as no relation, and a rule for ties
  • the offset convention and the export format

The label type also sets the quality measure. Span labeling tasks can be scored with Krippendorff's unitized alpha family, because the units are chosen before they are labeled [8]. The coefficients for each design are in measuring label quality with inter-annotator agreement.

Rillor's data labeling and annotation services deliver training data labeled to your schema, then reviewed, with classes, entities, spans, relationships and ratings as your schema sets them.

Read the full report

The full report covers each label type with its dataset figures, the storage formats side by side, how the label type changes the quality measure, and all 38 sources.

The full report

Data labeling vs data annotation: label types for text and documents

The research behind this article, with every source listed. 19 pages.

  1. Summary
  2. Background
  3. Method
  4. Findings
  5. Implications
  6. Limits of this analysis
  7. Sources

Sources

  1. Web Annotation Data Model, W3C Recommendation. Robert Sanderson, Paolo Ciccarese and Benjamin Young (editors), World Wide Web Consortium, 23 February 2017, viewed 8 November 2026. https://www.w3.org/TR/annotation-model/
  2. Regulation (EU) 2024/1689 laying down harmonised rules on artificial intelligence (Artificial Intelligence Act). European Parliament and Council of the European Union, Official Journal of the European Union, 12 July 2024, viewed 8 November 2026. https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=OJ:L_202401689
  3. Understanding AI terms and definitions according to the standard ISO 22989. itSMF Switzerland, 19 February 2025, viewed 8 November 2026. https://www.itsmf.ch/blogs/post/understanding-ai-terms-and-definitions-according-to-the-standard-iso-22989
  4. Machine Learning Glossary. Google for Developers, last updated 6 November 2026, viewed 8 November 2026. https://developers.google.com/machine-learning/glossary
  5. Adding Linguistic Annotation. Geoffrey Leech, in Developing Linguistic Corpora: a Guide to Good Practice, ed. Martin Wynne, Arts and Humanities Data Service, 2004, viewed 8 November 2026. https://users.ox.ac.uk/~martinw/dlc/chapter2.htm
  6. What is data labeling? IBM Think, IBM, 28 September 2021, updated 23 January 2026, viewed 8 November 2026. https://www.ibm.com/think/topics/data-labeling
  7. What is Data Labeling? Amazon Web Services, undated, viewed 8 November 2026. https://aws.amazon.com/what-is/data-labeling/
  8. Analyzing Dataset Annotation Quality Management in the Wild. Jan-Christoph Klie, Richard Eckart de Castilho and Iryna Gurevych, Computational Linguistics 50(3), pp. 817-866, MIT Press, September 2024, viewed 8 November 2026. https://aclanthology.org/2024.cl-3.1/
  9. Extract text information using named entity recognition. Amazon SageMaker Developer Guide, Amazon Web Services, undated, viewed 8 November 2026. https://docs.aws.amazon.com/sagemaker/latest/dg/sms-named-entity-recg.html
  10. Labeling job output data. Amazon SageMaker Developer Guide, Amazon Web Services, undated, viewed 8 November 2026. https://docs.aws.amazon.com/sagemaker/latest/dg/sms-data-output.html
  11. Set up a text labeling project and export labels. Azure Machine Learning documentation, Microsoft Learn, last updated 31 December 2025, viewed 8 November 2026. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-create-text-labeling-projects?view=azureml-api-2
  12. Export annotations and data from Label Studio. Label Studio documentation, HumanSignal, undated, viewed 8 November 2026. https://labelstud.io/guide/export
  13. brat standoff format. brat rapid annotation tool, undated, viewed 8 November 2026. https://brat.nlplab.org/standoff.html
  14. SpanCategorizer. spaCy API documentation, Explosion, undated, viewed 8 November 2026. https://spacy.io/api/spancategorizer
  15. EntityRecognizer. spaCy API documentation, Explosion, undated, viewed 8 November 2026. https://spacy.io/api/entityrecognizer
  16. Universal POS tags. Universal Dependencies contributors, undated, viewed 8 November 2026. https://universaldependencies.org/u/pos/index.html
  17. Text Chunking using Transformation-Based Learning. Lance Ramshaw and Mitch Marcus, Third Workshop on Very Large Corpora, ACL Anthology W95-0107, 1995, viewed 8 November 2026. https://aclanthology.org/W95-0107/
  18. Introduction to the CoNLL-2003 Shared Task: Language-Independent Named Entity Recognition. Erik F. Tjong Kim Sang and Fien De Meulder, Proceedings of CoNLL at HLT-NAACL 2003, pp. 142-147, 2003, viewed 8 November 2026. https://aclanthology.org/W03-0419/
  19. Nested Named Entity Recognition. Jenny Rose Finkel and Christopher D. Manning, Proceedings of EMNLP 2009, pp. 141-150, August 2009, viewed 8 November 2026. https://aclanthology.org/D09-1015/
  20. CoNLL-2012 Shared Task: Modeling Multilingual Unrestricted Coreference in OntoNotes. Sameer Pradhan, Alessandro Moschitti, Nianwen Xue, Olga Uryupina and Yuchen Zhang, Joint Conference on EMNLP and CoNLL, Shared Task, pp. 1-40, July 2012, viewed 8 November 2026. https://aclanthology.org/W12-4501/
  21. Position-aware Attention and Supervised Data Improve Slot Filling. Yuhao Zhang, Victor Zhong, Danqi Chen, Gabor Angeli and Christopher D. Manning, Proceedings of EMNLP 2017, pp. 35-45, September 2017, viewed 8 November 2026. https://aclanthology.org/D17-1004/
  22. DocRED: A Large-Scale Document-Level Relation Extraction Dataset. Yuan Yao and others, Proceedings of ACL 2019, pp. 764-777, July 2019, viewed 8 November 2026. https://aclanthology.org/P19-1074/
  23. A large annotated corpus for learning natural language inference. Samuel R. Bowman, Gabor Angeli, Christopher Potts and Christopher D. Manning, Proceedings of EMNLP 2015, pp. 632-642, September 2015, viewed 8 November 2026. https://aclanthology.org/D15-1075/
  24. GoEmotions: A Dataset of Fine-Grained Emotions. Dorottya Demszky, Dana Movshovitz-Attias, Jeongwoo Ko, Alan Cowen, Gaurav Nemade and Sujith Ravi, Proceedings of ACL 2020, pp. 4040-4054, July 2020, viewed 8 November 2026. https://aclanthology.org/2020.acl-main.372/
  25. SummEval: Re-evaluating Summarization Evaluation. Alexander R. Fabbri, Wojciech Kryściński, Bryan McCann, Caiming Xiong, Richard Socher and Dragomir Radev, Transactions of the Association for Computational Linguistics 9, pp. 391-409, 2021, viewed 8 November 2026. https://aclanthology.org/2021.tacl-1.24/
  26. Training language models to follow instructions with human feedback. Long Ouyang and others, arXiv 2203.02155, version 1, 4 March 2022, viewed 8 November 2026. https://arxiv.org/abs/2203.02155
  27. Dataset formats and types. TRL documentation, Hugging Face, undated, viewed 8 November 2026. https://huggingface.co/docs/trl/dataset_formats
  28. FUNSD: A Dataset for Form Understanding in Noisy Scanned Documents. Guillaume Jaume, Hazim Kemal Ekenel and Jean-Philippe Thiran, arXiv 1905.13538, version 2, 29 October 2019, viewed 8 November 2026. https://arxiv.org/abs/1905.13538
  29. DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis. Birgit Pfitzmann, Christoph Auer, Michele Dolfi, Ahmed S. Nassar and Peter W J Staar, KDD 2022, arXiv 2206.01062, version 1, 2 June 2022, viewed 8 November 2026. https://arxiv.org/abs/2206.01062
  30. PubLayNet: largest dataset ever for document layout analysis. Xu Zhong, Jianbin Tang and Antonio Jimeno Yepes, arXiv 1908.07836, version 1, 16 August 2019, viewed 8 November 2026. https://arxiv.org/abs/1908.07836
  31. Image-based table recognition: data, model, and evaluation. Xu Zhong, Elaheh ShafieiBavani and Antonio Jimeno Yepes, arXiv 1911.10683, version 5, 4 March 2020, viewed 8 November 2026. https://arxiv.org/abs/1911.10683
  32. CUAD: An Expert-Annotated NLP Dataset for Legal Contract Review. Dan Hendrycks, Collin Burns, Anya Chen and Spencer Ball, NeurIPS 2021 Datasets and Benchmarks, arXiv 2103.06268, version 2, 8 November 2021, viewed 8 November 2026. https://arxiv.org/abs/2103.06268
  33. CoNLL-U Format. Universal Dependencies contributors, undated, viewed 8 November 2026. https://universaldependencies.org/format.html

Bring us records to label.

Send a sample of the records, the labels your schema sets and the accuracy you need.

Scope a labeling project