Skip to content

Glossary: NLP with Transformers

Bigram

Also written: bigrams, ngram_range, n-gram

A pair of neighboring words used as a feature, such as 'do you'. Setting `ngram_range=(1, 2)` in TF-IDF adds these pairs to single words.

Where the book teaches it

Related terms

TF-IDF