We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6923eda commit cefda74Copy full SHA for cefda74
src/datasets/features/features.py
@@ -1160,7 +1160,7 @@ def _load_names_from_file(names_filepath):
1160
return [name.strip() for name in f.read().split("\n") if name.strip()] # Filter empty names
1161
1162
1163
-def Sequence(feature):
+def Sequence(feature, length=-1):
1164
"""
1165
A `Sequence` is a utility that automatically converts internal dictionary feature into a dictionary of
1166
lists. This behavior is implemented to have a compatibility layer with the TensorFlow Datasets library but may be
0 commit comments