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 ee7caa6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 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 @@ -82,9 +80,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 ee7caa6

Please sign in to comment.