Skip to content
class

WhitespaceTokenizer

extendsLookupTokenizer
WhitespaceTokenizer

── WhitespaceTokenizer ─────────────────────────────────────────────

One token per whitespace-delimited word. Whitespace itself is dropped from the vocab — decode joins tokens with a single space.

Constructors

1

Methods

3
fnconst

decode

int decode(const int & ids)
fnconst

split_to_chunks_

int split_to_chunks_(const int & text)