Unverified Commit 331ea019 authored by Omar Sanseviero's avatar Omar Sanseviero Committed by GitHub
Browse files

Remove unneded words from audio-related feature extractors (#19405)

parent 56af8df3
...@@ -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]]`):
......
...@@ -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]]`):
......
...@@ -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]]`):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment