mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
[Wav2Vec2ForCTC] example typo fixed (#11878)
This commit is contained in:
parent
1b6530104d
commit
a9c797f93d
@ -1026,7 +1026,7 @@ class Wav2Vec2ForCTC(Wav2Vec2PreTrainedModel):
|
||||
|
||||
>>> # wrap processor as target processor to encode labels
|
||||
>>> with processor.as_target_processor():
|
||||
>>> labels = processor(transcription, return_tensors="pt").input_ids
|
||||
>>> labels = processor(target_transcription, return_tensors="pt").input_ids
|
||||
|
||||
>>> loss = model(input_values, labels=labels).loss
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user