def train

bend-ml-bpe-tokenizer@0.1.3.0 · main.bend:251

import bend-ml-bpe-tokenizer@0.1.3.0/main.bend as BendMlBpeTokenizer
import Base

251# the table from the oldest rule to the newest
252def train(n: Nat, +next: Nat, +xs: List<&2, Tk>) -> List<&2, Rule>:
253  train.go(n, next, xs, best(count.go(xs, Nil{})))

Uses (7)

Used by (2)