BERT is a pretrained bidirectional transformer language model that turns text into contextual, low-dimensional representations. Those embeddings can become features for a downstream machine-learning model, preserving richer sequential information than representations that discard word order. section 11.1.2
Use BERT when text must become model-ready features:
- Represent input text in an embedding space and feed the resulting vectors to a final model. section 11.1.2
- Prefer richer language representations when bag-of-words, TF-IDF, or BM25 are insufficient because they lose word-order information. section 11.1.2
- Treat other sequential data as tokens when designing embedding-based features, such as user sessions made of visited pages or watched videos. section 11.1.2
Recommendation features
A recommendation system can represent a user session as a sequence of visited product pages or watched videos, then use learned representations in a next-page prediction task to infer the user’s likely interest. section 11.1.2








