Unverified Commit d41dd535 authored by MikeG112's avatar MikeG112 Committed by GitHub
Browse files

[Wav2Vec2] Fix documentation inaccuracy (#10694)



* Update super class reference

* Update default value reference

* Update src/transformers/models/wav2vec2/feature_extraction_wav2vec2.py

* Fix format style
Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
parent f5c097fc
...@@ -33,8 +33,9 @@ class Wav2Vec2FeatureExtractor(SequenceFeatureExtractor): ...@@ -33,8 +33,9 @@ class Wav2Vec2FeatureExtractor(SequenceFeatureExtractor):
r""" r"""
Constructs a Wav2Vec2 feature extractor. Constructs a Wav2Vec2 feature extractor.
This feature extractor inherits from :class:`~transformers.Wav2Vec2FeatureExtractor` which contains most of the This feature extractor inherits from
main methods. Users should refer to this superclass for more information regarding those methods. :class:`~transformers.feature_extraction_sequence_utils.SequenceFeatureExtractor` which contains most of the main
methods. Users should refer to this superclass for more information regarding those methods.
Args: Args:
feature_size (:obj:`int`, defaults to 1): feature_size (:obj:`int`, defaults to 1):
...@@ -102,7 +103,7 @@ class Wav2Vec2FeatureExtractor(SequenceFeatureExtractor): ...@@ -102,7 +103,7 @@ class Wav2Vec2FeatureExtractor(SequenceFeatureExtractor):
raw_speech (:obj:`np.ndarray`, :obj:`List[float]`, :obj:`List[np.ndarray]`, :obj:`List[List[float]]`): raw_speech (:obj:`np.ndarray`, :obj:`List[float]`, :obj:`List[np.ndarray]`, :obj:`List[List[float]]`):
The sequence or batch of sequences to be padded. Each sequence can be a numpy array, a list of float The sequence or batch of sequences to be padded. Each sequence can be a numpy array, a list of float
values, a list of numpy arrays or a list of list of float values. values, a list of numpy arrays or a list of list of float values.
padding (:obj:`bool`, :obj:`str` or :class:`~transformers.file_utils.PaddingStrategy`, `optional`, defaults to :obj:`True`): padding (:obj:`bool`, :obj:`str` or :class:`~transformers.file_utils.PaddingStrategy`, `optional`, defaults to :obj:`False`):
Select a strategy to pad the returned sequences (according to the model's padding side and padding Select a strategy to pad the returned sequences (according to the model's padding side and padding
index) among: index) among:
......
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