Core Concepts (AI/ML)
Data Labelling (Annotation)
In shortAdding the correct answer (a category, entity, sentiment or score) to examples, so a supervised model can learn from them or be checked against them.
Data labelling, also called annotation, is the work of attaching the correct answer to each example in a dataset. A keyword gets an intent label, a review gets a sentiment, a span of text is marked as a person or organisation. Labelled data is what makes supervised learning possible, and it is how you check whether any model, including a pre-trained API, is getting your task right.
How it works
You first define a label set and written guidelines: what counts as “commercial” intent, or where an entity starts and ends. Annotators, who may be your team, crowd workers or subject experts, then label a sample. Good projects have at least two people label an overlapping subset and measure their agreement, for example with Cohen’s kappa; low agreement usually means the guidelines are unclear. The labelled set is then split into training, validation and test data (see train/test split).
Labelling can be sped up with model-assisted pre-labels that humans correct, active learning that picks the most informative examples to label next, or rules and regex for the obvious cases.
How it’s used in SEO and marketing
- Labelling keywords by search intent or category to train an intent classifier.
- Tagging pages by page type or topic for text classification or Google Cloud AutoML.
- Hand-labelling a sample of reviews to check a sentiment API before trusting it on thousands more.
- Labelling queries as user-typed or synthetic, as in MLforSEO’s Random Forest classifier notebook.
- Marking entities in your own content to benchmark NLP APIs.
Example
MLforSEO’s framework for machine learning problems starts with one question: do you have labelled data, meaning do you already know the correct answer for at least a subset of your data? If you do, supervised methods such as classification and regression are open to you. If you don’t, you either label a sample, use a pre-trained model, or switch to unsupervised methods such as clustering.
Limitations and things to watch
- Labelling is slow and expensive, and many teams discover too late that they do not have enough labelled data for a custom model.
- Labels carry the biases and inconsistencies of the people who made them. Diverse annotators and clear guidelines reduce bias.
- Imbalanced labels (few positive examples) lead models to over-predict the majority class.
- LLMs can pre-label data cheaply, but their labels still need human review on a sample.
Learn it on MLforSEO
Where Data Labelling (Annotation) shows up on MLforSEO
Learn it in a course
Sources and further reading
Other terms from Core Concepts (AI/ML)
- AlgorithmA defined set of steps for solving a problem; in machine learning, the procedure that learns patterns from dat…
- Artificial Intelligence (AI)The broad field of building systems that appear to reason, learn and act intelligently; machine learning is on…
- Bag of WordsA simple way to turn text into numbers by counting how often each word appears in a document, ignoring grammar…
- Bias (AI/ML)When a model systematically favours some outcomes or groups over others because of skewed data, labels, design…
- Data Preprocessing (Cleaning)Cleaning, fixing and reshaping raw data so a machine learning model or analysis can use it, from removing dupl…
- Deep LearningA branch of machine learning that trains many-layered neural networks on large datasets; it powers modern lang…
- Dimensionality ReductionCompressing data with many features, such as embeddings, into fewer dimensions while keeping the important str…
- EmbeddingA list of numbers (a vector) that represents the meaning of a word, text, image or entity, so similar things s…
- Explainable AI (Explainability)Explainable AI is the ability to understand and explain why a model produced a particular output, through inte…


