Skip to content

Commit

Permalink
Fix feature extraction utils import (#14515)
Browse files Browse the repository at this point in the history
  • Loading branch information
LysandreJik committed Nov 24, 2021
1 parent dd54843 commit 118ae19
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
"DataCollatorWithPadding",
"default_data_collator",
],
"feature_extraction_sequence_utils": ["BatchFeature", "SequenceFeatureExtractor"],
"feature_extraction_sequence_utils": ["SequenceFeatureExtractor"],
"feature_extraction_utils": ["BatchFeature"],
"file_utils": [
"CONFIG_NAME",
"MODEL_CARD_NAME",
Expand Down Expand Up @@ -2059,9 +2060,10 @@
DataCollatorWithPadding,
default_data_collator,
)
from .feature_extraction_sequence_utils import SequenceFeatureExtractor

# Feature Extractor
from .feature_extraction_utils import BatchFeature, SequenceFeatureExtractor
from .feature_extraction_utils import BatchFeature

# Files and general utilities
from .file_utils import (
Expand Down

0 comments on commit 118ae19

Please sign in to comment.