Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
331ea019
Unverified
Commit
331ea019
authored
Oct 07, 2022
by
Omar Sanseviero
Committed by
GitHub
Oct 07, 2022
Browse files
Remove unneded words from audio-related feature extractors (#19405)
parent
56af8df3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/transformers/models/speech_to_text/feature_extraction_speech_to_text.py
...odels/speech_to_text/feature_extraction_speech_to_text.py
+1
-1
src/transformers/models/wav2vec2/feature_extraction_wav2vec2.py
...ansformers/models/wav2vec2/feature_extraction_wav2vec2.py
+1
-1
src/transformers/models/whisper/feature_extraction_whisper.py
...transformers/models/whisper/feature_extraction_whisper.py
+1
-1
No files found.
src/transformers/models/speech_to_text/feature_extraction_speech_to_text.py
View file @
331ea019
...
@@ -136,7 +136,7 @@ class Speech2TextFeatureExtractor(SequenceFeatureExtractor):
...
@@ -136,7 +136,7 @@ class Speech2TextFeatureExtractor(SequenceFeatureExtractor):
**
kwargs
**
kwargs
)
->
BatchFeature
:
)
->
BatchFeature
:
"""
"""
Main method to featurize and prepare for the model one or several sequence(s).
sequences.
Main method to featurize and prepare for the model one or several sequence(s).
Args:
Args:
raw_speech (`np.ndarray`, `List[float]`, `List[np.ndarray]`, `List[List[float]]`):
raw_speech (`np.ndarray`, `List[float]`, `List[np.ndarray]`, `List[List[float]]`):
...
...
src/transformers/models/wav2vec2/feature_extraction_wav2vec2.py
View file @
331ea019
...
@@ -112,7 +112,7 @@ class Wav2Vec2FeatureExtractor(SequenceFeatureExtractor):
...
@@ -112,7 +112,7 @@ class Wav2Vec2FeatureExtractor(SequenceFeatureExtractor):
**
kwargs
**
kwargs
)
->
BatchFeature
:
)
->
BatchFeature
:
"""
"""
Main method to featurize and prepare for the model one or several sequence(s).
sequences.
Main method to featurize and prepare for the model one or several sequence(s).
Args:
Args:
raw_speech (`np.ndarray`, `List[float]`, `List[np.ndarray]`, `List[List[float]]`):
raw_speech (`np.ndarray`, `List[float]`, `List[np.ndarray]`, `List[List[float]]`):
...
...
src/transformers/models/whisper/feature_extraction_whisper.py
View file @
331ea019
...
@@ -221,7 +221,7 @@ class WhisperFeatureExtractor(SequenceFeatureExtractor):
...
@@ -221,7 +221,7 @@ class WhisperFeatureExtractor(SequenceFeatureExtractor):
**
kwargs
**
kwargs
)
->
BatchFeature
:
)
->
BatchFeature
:
"""
"""
Main method to featurize and prepare for the model one or several sequence(s).
sequences.
Main method to featurize and prepare for the model one or several sequence(s).
Args:
Args:
raw_speech (`np.ndarray`, `List[float]`, `List[np.ndarray]`, `List[List[float]]`):
raw_speech (`np.ndarray`, `List[float]`, `List[np.ndarray]`, `List[List[float]]`):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment