Repository navigation
splintr 0.21.1
Added
SpecialPolicy::with_leading_bosandAnyTokenizer::with_leading_bosset, replace or remove the token thatencodeprepends. Tokens after the content, the pair template and the EOS id stay as they are. A caller whose model files state BOS apart from the vocabulary uses it, such as atokenizer_config.jsonadd_bos_tokenbeside a bundled vocabulary.SpecialPolicy::leading_specialreturns the special token the single-sequence template places before the content.
Full diff: v0.21.0...v0.21.1