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
5d1fed07
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "6015f91a5a28548a597f8d24341d089fe04994e8"
Unverified
Commit
5d1fed07
authored
Jul 28, 2022
by
bhuang
Committed by
GitHub
Jul 28, 2022
Browse files
Update automatic_speech_recognition.py (#18339)
parent
985c7e3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/pipelines/automatic_speech_recognition.py
src/transformers/pipelines/automatic_speech_recognition.py
+1
-1
No files found.
src/transformers/pipelines/automatic_speech_recognition.py
View file @
5d1fed07
...
@@ -168,7 +168,7 @@ class AutomaticSpeechRecognitionPipeline(ChunkPipeline):
...
@@ -168,7 +168,7 @@ class AutomaticSpeechRecognitionPipeline(ChunkPipeline):
pronounced after `0.5` and before `0.6` seconds. If set to `"word"`, the pipeline will return
pronounced after `0.5` and before `0.6` seconds. If set to `"word"`, the pipeline will return
`timestamps` along the text for every word in the text. For instance if you get `[{"text": "hi ",
`timestamps` along the text for every word in the text. For instance if you get `[{"text": "hi ",
"timestamps": (0.5,0.9), {"text": "there", "timestamps": (1.0, .1.5)}]`, then it means the model
"timestamps": (0.5,0.9), {"text": "there", "timestamps": (1.0, .1.5)}]`, then it means the model
predicts that the word "hi" was pronounce
s before
0.5 and
after
0.9 seconds.
predicts that the word "hi" was pronounce
d after `
0.5
`
and
before `
0.9
`
seconds.
Return:
Return:
`Dict`: A dictionary with the following keys:
`Dict`: A dictionary with the following keys:
...
...
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