Skip to content

Commit

Permalink
revert translation feature
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-hh committed Nov 2, 2024
1 parent fded3b9 commit 977a0b7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/datasets/features/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 977a0b7

Please sign in to comment.