Description Usage Arguments See Also
View source: R/features_text.R
Invertible TextEncoder using word pieces with a byte-level fallback.
1 | subword_text_encoder(vocab_list)
|
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. |
save_subword_text_encoder()
, load_subword_text_encoder()
, encode()
and decode()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.