Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -963,10 +963,8 @@ def check_source_fields(description, product_name, benefits, key_message):
|
|
963 |
|
964 |
|
965 |
def on_check_source_fields(description, product_name, benefits, key_message):
|
966 |
-
|
967 |
-
|
968 |
-
"""
|
969 |
-
return check_source_fields(description, product_name, benefits, key_message)
|
970 |
|
971 |
|
972 |
def extract_failed_checks(checks_dict, exceptions_dict, context=""):
|
@@ -1561,7 +1559,7 @@ def check_no_multiple_nouns(message, exceptions=None):
|
|
1561 |
allowed_chains = exceptions.get("multiple_nouns", set()) # set of tuples
|
1562 |
|
1563 |
morph = pymorphy3.MorphAnalyzer()
|
1564 |
-
tokens = re.split(r'
|
1565 |
chain = []
|
1566 |
count = 0
|
1567 |
|
|
|
963 |
|
964 |
|
965 |
def on_check_source_fields(description, product_name, benefits, key_message):
|
966 |
+
report, exceptions_dict = check_source_fields(description, product_name, benefits, key_message)
|
967 |
+
return report
|
|
|
|
|
968 |
|
969 |
|
970 |
def extract_failed_checks(checks_dict, exceptions_dict, context=""):
|
|
|
1559 |
allowed_chains = exceptions.get("multiple_nouns", set()) # set of tuples
|
1560 |
|
1561 |
morph = pymorphy3.MorphAnalyzer()
|
1562 |
+
tokens = re.split(r'[,\s.!?;:()]+', message)
|
1563 |
chain = []
|
1564 |
count = 0
|
1565 |
|