Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Text mining›TF-IDF — Term Frequency–Inverse Document Frequency
Process / pipeline

TF-IDF — Term Frequency–Inverse Document Frequency

Term Frequency–Inverse Document Frequency Vectorization · Also known as: term weighting, tf-idf weighting, TF-IDF Vektörizasyonu

TF-IDF, introduced by Salton and Buckley (1988), is a term-weighting scheme that scores each word in a document by how often it appears there and how rare it is across the whole collection. It turns raw text into weighted document vectors, giving high weight to terms that are frequent in one document but uncommon elsewhere.

ScholarGate
  1. Process / pipeline
  2. v1
  3. 1 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

TF-IDF
Sentiment AnalysisText ClassificationWord2VecCo-occurrence AnalysisDoc2VecDocument ClusteringFake News DetectionGloVe EmbeddingsKeyword ExtractionLexical Diversity

+13 more

When to use it

Use TF-IDF when you have a text corpus and need to turn documents into numeric features for retrieval, classification, or similarity comparison. It relies on the bag-of-words assumption and requires text preprocessing beforehand. The collection should be reasonably large — with under about 100 documents the IDF weights become unstable and a simple word-frequency analysis is more reliable. With no text data at all, TF-IDF cannot be computed.

Strengths & limitations

Strengths
  • Simple, fast, and interpretable — each weight is directly traceable to local frequency and global rarity.
  • Turns raw text into numeric document vectors usable by search, classification, and clustering methods.
  • Downweights ubiquitous, uninformative words while highlighting terms that distinguish a document.
Limitations
  • Rests on the bag-of-words assumption and ignores word order and context.
  • IDF weights become unstable and meaningless on very small corpora.
  • Requires careful text preprocessing; noisy tokens degrade the weights.

Frequently asked

What do TF and IDF each measure?

Term frequency (TF) measures how often a term appears within a single document, capturing how central it is locally. Inverse document frequency (IDF) measures how rare the term is across the whole collection, downweighting words that appear in many documents. Multiplying them gives high weight to terms that are frequent in one document but uncommon elsewhere.

How large does my corpus need to be?

TF-IDF needs a reasonably large collection — roughly 100 documents or more. Below that, IDF weights become unstable and lose meaning, and a simpler word-frequency analysis is the more reliable choice.

Does TF-IDF understand meaning or context?

No. TF-IDF rests on the bag-of-words assumption: it weights individual terms by frequency and rarity and ignores word order, syntax, and semantics. For context or semantic similarity, embedding methods such as Word2Vec are more appropriate.

What preprocessing does it require?

The corpus must be cleaned and tokenised consistently before weighting — normalising text and splitting it into comparable term units. Skipping this step leaves noisy tokens that degrade the weights.

Sources

  1. Salton, G. & Buckley, C. (1988). Term-weighting approaches in automatic text retrieval. Information Processing & Management, 24(5), 513-523. DOI: 10.1016/0306-4573(88)90021-0 ↗

How to cite this page

ScholarGate. (2026, June 1). Term Frequency–Inverse Document Frequency Vectorization. ScholarGate. https://scholargate.app/en/text-mining/tf-idf

Related methods

Sentiment AnalysisText ClassificationWord2Vec

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Sentiment AnalysisText mining↔ compare
  • Text ClassificationText mining↔ compare
  • Word2VecText mining↔ compare
Compare side by side →

Referenced by

Co-occurrence AnalysisDoc2VecDocument ClusteringFake News DetectionGloVe EmbeddingsKeyword ExtractionLexical DiversityLinguistic Acceptability AssessmentMorphological AnalysisMulti-Document SummarizationN-gram Language ModelNMF Topic ModelingReadability AnalysisSemantic SimilaritySentiment AnalysisSocial Media NLPText ClassificationText DeduplicationText Frequency AnalysisText RegressionText SegmentationTopic Modeling (LDA)Word2Vec

Similar methods

Keyword ExtractionDocument ClusteringText Frequency AnalysisBM25 Probabilistic Ranking (Okapi)NMF Topic ModelingText RegressionDoc2VecWord2Vec

Related reference concepts

Vector Space ModelDocument Representation and WeightingRetrieval ModelsText Representation and ClassificationText ClusteringText Classification

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — TF-IDF (Term Frequency–Inverse Document Frequency Vectorization). Retrieved 2026-07-22 from https://scholargate.app/en/text-mining/tf-idf · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Salton & Buckley
Year
1988
Type
Text vectorization / term-weighting scheme
Input
Document collection (corpus) of text
Output
Weighted document-term vectors
MinCorpus
~100 documents for meaningful IDF weights
Related methods
Sentiment AnalysisText ClassificationWord2Vec
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account