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) <105218074+stevehuang52@users.noreply.github.com>
  • Loading branch information
stevehuang52 authored Aug 2, 2023
1 parent 0691232 commit f4b9650
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 f4b9650

Please sign in to comment.