byte_text_encoder: Byte Text Encoder

Description Usage Arguments See Also

View source: R/features_text.R

Description

Byte encodes text

Usage

1
byte_text_encoder(additional_tokens = NULL)

Arguments

additional_tokens

list of additional tokens. These will be assigned vocab ids [1, 1+len(additional_tokens)]. Useful for things like "end-of-string" tokens (e.g. "").

See Also

save_byte_text_encoder(), load_byte_text_encoder(), encode() and decode()


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