What is Text Annotation? – 5 Different Types of Annotations

Article by Limarc Ambalina | September 12, 2019

Natural language processing (NLP) is one of the biggest fields of AI development. Numerous NLP solutions like chatbots, automatic speech recognition, and sentiment analysis programs can improve efficiency and productivity in various businesses around the world. Recent breakthroughs in NLP have even shown potential to help the speech impaired communicate freely with automatic speech recognition devices and the people around them. However, none of these amazing technologies would be possible without text annotation and the companies that provide these annotation services. 

To train NLP algorithms, large annotated text datasets are required and every project has different requirements. For developers looking to build text datasets, here is a brief introduction to five different types of text annotation. For those of you looking to start annotating text data on your own, check out this list of text annotation tools and our standalone data annotation platform.


5 Types of Text Annotation

1. Entity Annotation

Entity annotation is one of the most important processes in the generation of chatbot training datasets and other NLP training data. It is the act of locating, extracting, and tagging entities in text.


Types of Entity Annotation:

Named Entity Recognition (NER) – The annotation of entities with proper names


Text annotation type: Entity Annotation

Keyphrase Tagging – The location and labelling of keywords or keyphrases in text data

keyphrase tagging

Part-of-Speech (POS) Tagging – The discernment and annotation of the functional elements of speech i.e. adjectives, nouns, adverbs, verbs, etc.

POS Tagging

Entity annotation teaches NLP models how to identify parts of speech, named entities, and keyphrases within a text. In this task, annotators read the text thoroughly, locate the target entities, highlight them on the annotation platform and choose from a predetermined list of labels. To help NLP models learn about named entities further, entity annotation is often paired with entity linking. 


2. Entity Linking

Whereas entity annotation is the location and annotation of certain entities within a text, entity linking is the process of connecting those entities to larger repositories of data about them. 


Types of Entity Linking:

End-to-End Entity Linking – The joint process of first analyzing and annotating entities within a text (named entity recognition), and engaging in entity disambiguation

An Introduction to 5 Types of Text Annotation - Entity Linking

Entity Disambiguation – The process of linking named entities to knowledge databases about them


Text Annotation Services - Entity Disambiguation

Entity linking is used to both improve search functions and user experience. Annotators are tasked with linking labeled entities within a text to a url that contains more information about the entity. 


3. Text Classification

Also known as text categorization or document classification, text classification tasks annotators with reading a body of text or short lines of text. Annotators must analyze the content, discern the subject, intent, and sentiment within it and classify it based on a predetermined list of categories. Whereas entity annotation is the labelling of individual words or phrases, text classification is the process of annotating of an entire body or line of text with a single label. 


Related Text Annotation Types:

Document Classification – The classification of documents used to help with the sorting and recall of text-based content. 


document classification graphic

Product Categorization – Crucial for ecommerce sites, product categorization is the sorting of products or services into intuitive classes and categories to help improve search relevance and user experience. Sometimes annotators are shown product descriptions, product images, or both. The annotators would then choose from a list of departments or categories that the client has provided.

product categorization platform

Sentiment Annotation – The classification of text based on the emotion, opinion, or sentiment within the text.  


sentiment classifiers

Because text classification is a broad category, various annotation types like product categorization or sentiment annotation are technically just specialized forms of text classification. 


4. Sentiment Annotation

Emotional intelligence is one of the most difficult fields of machine learning. Sometimes it is difficult even for humans to guess the true emotion behind a text message or email. It is exponentially more difficult for a machine to determine connotations hidden in texts that use sarcasm, wit, or other casual forms of communication. To help machine learning models understand the sentiment within text, the models are trained with sentiment-annotated text data.

An Introduction to 5 Types of Text Annotation - SENTIMENT ANALYSIS

Sometimes more broadly referred to as sentiment analysis or opinion mining, sentiment annotation is the labelling of emotion, opinion, or sentiment inherent within a body of text. Annotators are given texts to analyze and must choose which label best represent the emotion or opinion within the text. A simple example would be the analysis of customer reviews. Annotators would read the reviews and label them as positive, neutral, or negative.

When built correctly with accurate training data, a strong sentiment analysis model can accurately detect the sentiment in user reviews, social media posts, and so on. The sentiment analysis model would then allow businesses to track public opinion about their products, allowing the companies to develop future strategies or alter current strategies accordingly. 


5. Linguistic Annotation

Also referred to as corpus annotation, linguistic annotation simply describes the process of tagging language data in text or audio recordings. With linguistic annotation, annotators are tasked with identifying and flagging grammatical, semantic, or phonetic elements in the text or audio data. 


Types of Linguistic Annotation:

Discourse Annotation – The linking of anaphors and cataphors to their antecedent or postcedent subjects. Ex: James broke the chair. He felt really bad about it. 

An Introduction to 5 Types of Text Annotation - Discourse Annotation

Part-of-Speech (POS) Tagging – The annotation of the different function words within a text


An Introduction to 5 Types of Text Annotation - Part-of-Speech Tagging

Phonetic Annotation – The labeling of intonation, stress, and natural pauses in speech

An Introduction to 5 Types of Text Annotation - Phonetic Annotation

Semantic Annotation – The annotation of word definitions

An Introduction to 5 Types of Text Annotation - Semantic Annotation

Linguistic annotation is used to create AI training datasets for a variety of NLP solutions such as chatbots, virtual assistants, search engines, machine translation, and more.

These are just five types of text annotation commonly used in machine learning today. To read more about these five types of text annotation, please see our services pages.

If you’re developing your own NLP model and need to outsource text annotation, Lionbridge has over 20 years of experience in linguistics and 500,000+ staff ready to annotate your data. Learn more about how we can help your project be an industry-leading success. 

Offload your text annotation tasks
The Author
Limarc Ambalina

Limarc writes content for Lionbridge’s website as part of the marketing team. Born and raised in Canada, Limarc’s love of Japanese pop culture brought him to Japan in 2016 and living in Japan has been his dream come true. Apart from Lionbridge content, you can catch Limarc online writing about anime, video games, and other nerd culture.


    Sign up to our newsletter for fresh developments from the world of training data. Lionbridge brings you interviews with industry experts, dataset collections and more.