Skip to content

Commit

Permalink
Update evaluator.py (#7151)
Browse files Browse the repository at this point in the history
reflecting changes in #7150

Signed-off-by: He Huang (Steve) <105218074+stevehuang52@users.noreply.github.com>
  • Loading branch information
stevehuang52 authored Aug 2, 2023
1 parent 31c5b3d commit d5d600d
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 d5d600d

Please sign in to comment.