Tokenization and text representation · MLD-0088

Bag of words

Representing a document by word counts or presence while discarding order.

Original reference page · detailed expansion pending. Original definitions, examples, notes and citations are preserved below. New examples are illustrative, not benchmark results.

Original example

Train a simple document classifier.

Original caveat

It loses word order and contextual meaning.

Context and aliases

Level: Intermediate. Stages: Data · Training · Inference.

Tags: NLP · SLM · LLM.

Aliases: BoW.

Related concepts

Concepts linking here

Original references

Open original record, export or annotate →