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

Internal #464

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions seqio/experimental.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ def add_fully_cached_mixture(
return MixtureRegistry.add(
new_name,
[
(new_t.name, mixture._task_to_rate[old_t.name]) # pylint:disable=protected-access
for old_t, new_t in zip(mixture.tasks, new_tasks)
(new_t.name, old_ratio) # pylint:disable=protected-access
for old_ratio, new_t in zip(mixture.task_ratios, new_tasks)
],
)

Expand Down Expand Up @@ -504,7 +504,7 @@ def _sentinel_id(vocabulary, sentinel_num=0):

Args:
vocabulary: a t5.data.vocabularies.Vocabulary
sentinel_num: an optional interger, what sentinel should be returned. By
sentinel_num: an optional integer, what sentinel should be returned. By
default it returns the first sentinel.

Returns:
Expand Down