Tokenization & Embeddings · Problem 1 of 4
Given a merge list, implement a BPE tokenizer for a string.
Implement the function/class skeleton in the editor. Any correct approach is accepted.
def bpe_encode(text, merges):
raise NotImplementedErrorReady when you are
Submit your solution and a structured review appears here — verdict, score, and concrete feedback. Any correct approach passes.
Given a merge list, implement a BPE tokenizer for a string.
Implement the function/class skeleton in the editor. Any correct approach is accepted.