subword_text_encoder: Subword Text Encoder

Description Usage Arguments See Also

View source: R/features_text.R

Description

Invertible TextEncoder using word pieces with a byte-level fallback.

Usage

1

Arguments

vocab_list

list of subwords for the vocabulary. Note that an underscore at the end of a subword indicates the end of the word (i.e. a space will be inserted afterwards when decoding). Underscores in the interior of subwords are disallowed and should use the underscore escape sequence.

See Also

save_subword_text_encoder(), load_subword_text_encoder(), encode() and decode()


rstudio/tfds documentation built on Nov. 25, 2021, 6:20 p.m.