Spaces:
Runtime error
Runtime error
Commit
·
258c003
1
Parent(s):
1f51646
Update comparativesIdentification.py
Browse files
comparativesIdentification.py
CHANGED
@@ -11,6 +11,7 @@ spacy.cli.download("en_core_web_sm")
|
|
11 |
# use spacy small because in that way we are closer to a BOW model which is the one we care in our case since we just compare words
|
12 |
nlp_comparatives = spacy.load('en_core_web_sm', disable=["parser", "ner"])
|
13 |
|
|
|
14 |
def find_comptives_symbols(sentence):
|
15 |
"""
|
16 |
Capture unique cases of symbols like <, >, =, <=, >= and ==
|
@@ -768,4 +769,4 @@ def comparatives_binding(sentence):
|
|
768 |
return (0, "COMPARATIVES", "more_symbol_comparatives")
|
769 |
|
770 |
except:
|
771 |
-
return (0, "COMPARATIVES", "unknown_error")
|
|
|
11 |
# use spacy small because in that way we are closer to a BOW model which is the one we care in our case since we just compare words
|
12 |
nlp_comparatives = spacy.load('en_core_web_sm', disable=["parser", "ner"])
|
13 |
|
14 |
+
|
15 |
def find_comptives_symbols(sentence):
|
16 |
"""
|
17 |
Capture unique cases of symbols like <, >, =, <=, >= and ==
|
|
|
769 |
return (0, "COMPARATIVES", "more_symbol_comparatives")
|
770 |
|
771 |
except:
|
772 |
+
return (0, "COMPARATIVES", "unknown_error")
|