Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in documentation #16082

Merged
merged 1 commit into from
Feb 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion keras/layers/preprocessing/text_vectorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def adapt(self, data, batch_size=None, steps=None):
During `adapt()`, the layer will build a vocabulary of all string tokens
seen in the dataset, sorted by occurance count, with ties broken by sort
order of the tokens (high to low). At the end of `adapt()`, if `max_tokens`
is set, the voculary wil be truncated to `max_tokens` size. For example,
is set, the vocabulary wil be truncated to `max_tokens` size. For example,
adapting a layer with `max_tokens=1000` will compute the 1000 most frequent
tokens occurring in the input dataset. If `output_mode='tf-idf'`, `adapt()`
will also learn the document frequencies of each token in the input dataset.
Expand Down