Skip to content

Commit

Permalink
fix evaluator.py for various exceptions by ast (#7150)
Browse files Browse the repository at this point in the history
Signed-off-by: He Huang (Steve) <[email protected]>
Signed-off-by: jubick1337 <[email protected]>
  • Loading branch information
stevehuang52 authored and jubick1337 committed Aug 8, 2023
1 parent 07beea0 commit 88255c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/slu/speech_intent_slot/eval_utils/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 88255c9

Please sign in to comment.