Skip to content
class

WordTokenizer

extendsLookupTokenizer
WordTokenizer

── WordTokenizer ───────────────────────────────────────────────────

Same chunking as Whitespace, but emits UNK for OOV instead of dropping (which Whitespace also does — the difference is purely semantic / API-clarity). The Python wrapper enforces that special_tokens.unk is set.

Constructors

1

Methods

3
fnconst

decode

int decode(const int & ids)
fnconst

split_to_chunks_

int split_to_chunks_(const int & text)