WordPiece
Category: NLP / Language Processing
A subword tokenization algorithm that greedily selects merges based on maximizing the likelihood of the training data.
Full Explanation
WordPiece is a subword tokenization method developed at Google, closely related to BPE but differing in how merges are selected. Instead of choosing the most frequent pair, WordPiece selects merges that maximize the likelihood of the training corpus under a language model. This statistical approach tends to produce slightly different vocabularies compared to BPE. WordPiece is the tokenizer used in BERT and related models. It prefixes subword tokens with special markers (like ##) to indicate they are continuations of a preceding token. The algorithm handles out-of-vocabulary words gracefully by decomposing them into known subword pieces.
Related Terms
More in NLP / Language Processing
Explore More
- AI Tools Library — Discover AI tools related to WordPiece
- AI Education — Courses to learn about NLP / Language Processing
- AI News — Latest news and updates