% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocessing.R
\name{fit_text_tokenizer}
\alias{fit_text_tokenizer}
\title{Update tokenizer internal vocabulary based on a list of texts or list of
sequences.}
\usage{
fit_text_tokenizer(object, x)
}
\arguments{
\item{object}{Tokenizer returned by \code{\link[=text_tokenizer]{text_tokenizer()}}}

\item{x}{Vector/list of strings, or a generator of strings (for
memory-efficiency); Alternatively a list of "sequence" (a sequence is a
list of integer word indices).}
}
\description{
Update tokenizer internal vocabulary based on a list of texts or list of
sequences.
}
\note{
Required before using \code{\link[=texts_to_sequences]{texts_to_sequences()}}, \code{\link[=texts_to_matrix]{texts_to_matrix()}}, or
\code{\link[=sequences_to_matrix]{sequences_to_matrix()}}.
}
\seealso{
Other text tokenization: \code{\link{save_text_tokenizer}},
  \code{\link{sequences_to_matrix}},
  \code{\link{text_tokenizer}},
  \code{\link{texts_to_matrix}},
  \code{\link{texts_to_sequences_generator}},
  \code{\link{texts_to_sequences}}
}
