From a8c10536de77fe758aa508df7055a0c38b314127 Mon Sep 17 00:00:00 2001 From: pkufool Date: Sat, 18 Nov 2023 18:32:29 +0800 Subject: [PATCH] fix style --- icefall/context_graph.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/icefall/context_graph.py b/icefall/context_graph.py index 9428465dc..b3d7972a8 100644 --- a/icefall/context_graph.py +++ b/icefall/context_graph.py @@ -159,7 +159,9 @@ class ContextGraph: node = self.root # If has customized score using the customized token score, otherwise # 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): node_next = {} if token not in node.next: