Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Yoann HOUPERT
kgs
Commits
cc1aa88a
Commit
cc1aa88a
authored
Dec 19, 2017
by
Yoann HOUPERT
Browse files
return all hypothese
parent
33eaf5b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
kaldigstserver/client.py
kaldigstserver/client.py
+3
-1
No files found.
kaldigstserver/client.py
View file @
cc1aa88a
...
...
@@ -70,7 +70,9 @@ class MyClient(WebSocketClient):
#print >> sys.stderr, "JSON was:", m
if
response
[
'status'
]
==
0
:
if
'result'
in
response
:
trans
=
response
[
'result'
][
'hypotheses'
][
0
][
'transcript'
]
#trans = response['result']['hypotheses'][0]['transcript']
trans
=
response
[
'result'
][
'hypotheses'
]
if
response
[
'result'
][
'final'
]:
#print >> sys.stderr, trans,
self
.
final_hyps
.
append
(
trans
)
...
...
Yoann HOUPERT
@yhoupert
mentioned in commit
81b56d6b
·
Dec 20, 2017
mentioned in commit
81b56d6b
mentioned in commit 81b56d6b11a1959230faf0d393143c1681eeebe7
Toggle commit list
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