This commit is contained in:
wgb14 2022-02-16 02:04:09 -05:00
parent 55c0a7ddcd
commit 059457f622

View File

@ -735,7 +735,10 @@ def rescore_with_whole_lattice(
except RuntimeError as e:
logging.info(f"Caught exception:\n{e}\n")
if loop_count >= max_loop_count:
logging.info("Return None as the resulting lattice is too large")
logging.info(
"Return None as the resulting lattice "
"is too large"
)
return None
logging.info(
f"num_arcs before pruning: {inv_lattice.arcs.num_elements()}"