mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-06 15:44:17 +00:00
fix style
This commit is contained in:
parent
a7cb40a0a0
commit
a8c10536de
@ -159,7 +159,9 @@ class ContextGraph:
|
|||||||
node = self.root
|
node = self.root
|
||||||
# If has customized score using the customized token score, otherwise
|
# If has customized score using the customized token score, otherwise
|
||||||
# using the default score
|
# using the default score
|
||||||
context_score = self.context_score if score == 0.0 else round(score / len(tokens), 2)
|
context_score = (
|
||||||
|
self.context_score if score == 0.0 else round(score / len(tokens), 2)
|
||||||
|
)
|
||||||
for i, token in enumerate(tokens):
|
for i, token in enumerate(tokens):
|
||||||
node_next = {}
|
node_next = {}
|
||||||
if token not in node.next:
|
if token not in node.next:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user