From fdd6589dee24bd765bb5eed94ef763e2a63fc7af Mon Sep 17 00:00:00 2001 From: "S.P. Mohanty" <spmohanty91@gmail.com> Date: Sun, 24 Mar 2024 11:26:20 +0000 Subject: [PATCH] add a stroner exception handler for ner parser --- parsers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsers.py b/parsers.py index 4003598..91fc763 100644 --- a/parsers.py +++ b/parsers.py @@ -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 [ -- GitLab