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
4ed76377
Unverified
Commit
4ed76377
authored
Feb 09, 2021
by
abhishek thakur
Committed by
GitHub
Feb 09, 2021
Browse files
Fix example in Wav2Vec2 documentation (#10096)
* Fix example in Wav2Vec2 documentation * fix style
parent
bf1a06a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/transformers/models/wav2vec2/modeling_wav2vec2.py
src/transformers/models/wav2vec2/modeling_wav2vec2.py
+2
-1
No files found.
src/transformers/models/wav2vec2/modeling_wav2vec2.py
View file @
4ed76377
...
...
@@ -768,7 +768,8 @@ class Wav2Vec2ForCTC(Wav2Vec2PreTrainedModel):
Example::
>>> from transformers import Wav2Vec2Tokenizer, Wav2Vec2Model
>>> import torch
>>> from transformers import Wav2Vec2Tokenizer, Wav2Vec2ForCTC
>>> from datasets import load_dataset
>>> import soundfile as sf
...
...
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