diff --git a/src/datasets/features/features.py b/src/datasets/features/features.py index 7a94a0d8c73..f2c9dcb64a6 100644 --- a/src/datasets/features/features.py +++ b/src/datasets/features/features.py @@ -1160,7 +1160,7 @@ def _load_names_from_file(names_filepath): return [name.strip() for name in f.read().split("\n") if name.strip()] # Filter empty names -def Sequence(feature): +def Sequence(feature, length=-1): """ A `Sequence` is a utility that automatically converts internal dictionary feature into a dictionary of lists. This behavior is implemented to have a compatibility layer with the TensorFlow Datasets library but may be