From d5d600dc59c3c1f8b4dcb5946069eee6a14737c9 Mon Sep 17 00:00:00 2001 From: "He Huang (Steve)" <105218074+stevehuang52@users.noreply.github.com> Date: Tue, 1 Aug 2023 21:38:00 -0400 Subject: [PATCH] Update evaluator.py (#7151) reflecting changes in https://github.com/NVIDIA/NeMo/pull/7150 Signed-off-by: He Huang (Steve) <105218074+stevehuang52@users.noreply.github.com> --- examples/slu/speech_intent_slot/eval_utils/evaluator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/slu/speech_intent_slot/eval_utils/evaluator.py b/examples/slu/speech_intent_slot/eval_utils/evaluator.py index 7475e9fc48ed..e56711edf215 100644 --- a/examples/slu/speech_intent_slot/eval_utils/evaluator.py +++ b/examples/slu/speech_intent_slot/eval_utils/evaluator.py @@ -42,7 +42,7 @@ def parse_semantics_str2dict(semantics_str: Union[List[str], str, Dict]) -> Tupl "entities": [], } invalid = True - except SyntaxError: # need this if the output is not a valid dict + except Exception: # need this if the output is not a valid dict _dict = { "scenario": "none", "action": "none",