"vscode:/vscode.git/clone" did not exist on "cb5e50c8c2ebf0bcb3f8457e2f75119a27bad2c2"
Unverified Commit 516077b3 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Update `Wav2Vec2ProcessorWithLM` doc example (#22474)



fix
Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent da68fd69
......@@ -564,7 +564,7 @@ class Wav2Vec2ProcessorWithLM(ProcessorMixin):
>>> # compare word offsets with audio `common_voice_en_100038.mp3` online on the dataset viewer:
>>> # https://huggingface.co/datasets/common_voice/viewer/en/train
>>> word_offsets[:4]
[{'word': 'WHY', 'start_time': 1.42, 'end_time': 1.54}, {'word': 'DOES', 'start_time': 1.64, 'end_time': 1.88}, {'word': 'A', 'start_time': 2.12, 'end_time': 2.14}, {'word': 'MILE', 'start_time': 2.26, 'end_time': 2.46}]
[{'word': 'WHY', 'start_time': 1.42, 'end_time': 1.54}, {'word': 'DOES', 'start_time': 1.66, 'end_time': 1.9}, {'word': 'MILISANDRA', 'start_time': 2.26, 'end_time': 2.9}, {'word': 'LOOK', 'start_time': 3.0, 'end_time': 3.16}]
```"""
from pyctcdecode.constants import (
......
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