From 977a0b71356000a4fc54235cf5c50f31482f4473 Mon Sep 17 00:00:00 2001 From: alex-hh Date: Sat, 2 Nov 2024 11:43:07 +0000 Subject: [PATCH] revert translation feature --- src/datasets/features/translation.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/datasets/features/translation.py b/src/datasets/features/translation.py index 0c53bf5f9a2..584bf3186c3 100644 --- a/src/datasets/features/translation.py +++ b/src/datasets/features/translation.py @@ -3,15 +3,13 @@ import pyarrow as pa -from .base import Feature - if TYPE_CHECKING: from .features import FeatureType @dataclass -class Translation(Feature): +class Translation: """`Feature` for translations with fixed languages per example. Here for compatiblity with tfds. @@ -51,7 +49,7 @@ def flatten(self) -> Union["FeatureType", Dict[str, "FeatureType"]]: @dataclass -class TranslationVariableLanguages(Feature): +class TranslationVariableLanguages: """`Feature` for translations with variable languages per example. Here for compatiblity with tfds. @@ -83,8 +81,6 @@ class TranslationVariableLanguages(Feature): ``` """ - requires_encoding: ClassVar[bool] = True - languages: Optional[List] = None num_languages: Optional[int] = None id: Optional[str] = None