transformers
b85ed49e - Corrections to PR #38642 and enhancements to Wav2Vec2Processor __call__ and pad docstrings (#38822)

Commit
150 days ago
Corrections to PR #38642 and enhancements to Wav2Vec2Processor __call__ and pad docstrings (#38822) * Correcting PR #38642. The PR removed references to the deprecated method "as_target_processor()" in the __call__ and pad method docstrings, which is correct, but also removed all references to PreTrainedTokenizer, which is incorrect. This commit adds back the reference to PreTrainedTokenizer and also takes the opportunity to enhance the docstrings with the invocation procedure post removal of "as_target_processor()" and adds information on return values. * Update src/transformers/models/wav2vec2/processing_wav2vec2.py Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update src/transformers/models/wav2vec2/processing_wav2vec2.py Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update src/transformers/models/wav2vec2/processing_wav2vec2.py Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update src/transformers/models/wav2vec2/processing_wav2vec2.py Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update src/transformers/models/wav2vec2/processing_wav2vec2.py Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update src/transformers/models/wav2vec2/processing_wav2vec2.py Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update src/transformers/models/wav2vec2/processing_wav2vec2.py Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update src/transformers/models/wav2vec2/processing_wav2vec2.py Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update src/transformers/models/wav2vec2/processing_wav2vec2.py Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update src/transformers/models/wav2vec2/processing_wav2vec2.py Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update src/transformers/models/wav2vec2/processing_wav2vec2.py Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update src/transformers/models/wav2vec2/processing_wav2vec2.py Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update src/transformers/models/wav2vec2/processing_wav2vec2.py Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update src/transformers/models/wav2vec2/processing_wav2vec2.py Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> --------- Co-authored-by: René Tio <tor@Jammer.local> Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
Author
Parents
Loading