Skip to content
Snippets Groups Projects
Commit fdd6589d authored by spmohanty's avatar spmohanty
Browse files

add a stroner exception handler for ner parser

parent abf5b2f5
No related branches found
No related tags found
No related merge requests found
......@@ -205,7 +205,7 @@ class ShoppingBenchTaskParsers:
raise SyntaxError(
"Unexpected Syntax error - fall back to comma separated list."
)
except SyntaxError as e:
except Exception as e:
# Fallback: split the string by commas and strip whitespace.
# we remove empty entities. it will not cause bug, just an implementation choice.
return [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment