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
81b56d6b
Commit
81b56d6b
authored
Dec 19, 2017
by
Yoann HOUPERT
Browse files
Revert "return all hypothese"
This reverts commit
cc1aa88a
.
parent
cc1aa88a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
kaldigstserver/client.py
kaldigstserver/client.py
+1
-3
No files found.
kaldigstserver/client.py
View file @
81b56d6b
...
...
@@ -70,9 +70,7 @@ 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'
]
trans
=
response
[
'result'
][
'hypotheses'
][
0
][
'transcript'
]
if
response
[
'result'
][
'final'
]:
#print >> sys.stderr, trans,
self
.
final_hyps
.
append
(
trans
)
...
...
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