Skip to content

Commit a3428a2

Browse files
author
The TensorFlow Datasets Authors
committed
Remove deprecated variants from imdb_reviews.
PiperOrigin-RevId: 676343097
1 parent 53c389c commit a3428a2

File tree

1 file changed

+1
-33
lines changed

1 file changed

+1
-33
lines changed

tensorflow_datasets/datasets/imdb_reviews/imdb_reviews_dataset_builder.py

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -54,39 +54,7 @@ class Builder(tfds.core.GeneratorBasedBuilder):
5454
IMDBReviewsConfig(
5555
name="plain_text",
5656
description="Plain text",
57-
),
58-
IMDBReviewsConfig(
59-
name="bytes",
60-
description=(
61-
"Uses byte-level text encoding with "
62-
"`tfds.deprecated.text.ByteTextEncoder`"
63-
),
64-
text_encoder_config=tfds.deprecated.text.TextEncoderConfig(
65-
encoder=tfds.deprecated.text.ByteTextEncoder()
66-
),
67-
),
68-
IMDBReviewsConfig(
69-
name="subwords8k",
70-
description=(
71-
"Uses `tfds.deprecated.text.SubwordTextEncoder` with 8k "
72-
"vocab size"
73-
),
74-
text_encoder_config=tfds.deprecated.text.TextEncoderConfig(
75-
encoder_cls=tfds.deprecated.text.SubwordTextEncoder,
76-
vocab_size=2**13,
77-
),
78-
),
79-
IMDBReviewsConfig(
80-
name="subwords32k",
81-
description=(
82-
"Uses `tfds.deprecated.text.SubwordTextEncoder` with "
83-
"32k vocab size"
84-
),
85-
text_encoder_config=tfds.deprecated.text.TextEncoderConfig(
86-
encoder_cls=tfds.deprecated.text.SubwordTextEncoder,
87-
vocab_size=2**15,
88-
),
89-
),
57+
)
9058
]
9159

9260
def _info(self):

0 commit comments

Comments
 (0)