AI engineering glossary · NLP embeddings

What is TF (term frequency)?

Term frequency (also called TF): How often a term appears in one document, either as a raw count or scaled by document length. It measures how strongly a document is about a term, but common words score high everywhere unless weighted by rarity.

Level: beginnerTopic: NLP embeddings

Term frequency: an example

The word "cricket" appears 6 times in a 200-word article, giving a term frequency of 6 / 200 = 0.03.

Related terms

More NLP embeddings terms

Where you learn it

Term frequency is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.