Spaces:
Runtime error
Runtime error
too many equal signs
Browse files
app.py
CHANGED
|
@@ -24,8 +24,7 @@ def extract_features(tokens, labels):
|
|
| 24 |
|
| 25 |
# Loop through tokens and labels
|
| 26 |
for token, label in zip(tokens, labels):
|
| 27 |
-
if label ==
|
| 28 |
-
|
| 29 |
# Date logic
|
| 30 |
if re.match(r"^\d{1,2}/$", token) or re.match(r"^\d{4}$", token):
|
| 31 |
current_date += token
|
|
|
|
| 24 |
|
| 25 |
# Loop through tokens and labels
|
| 26 |
for token, label in zip(tokens, labels):
|
| 27 |
+
if label == 'LABEL_1':
|
|
|
|
| 28 |
# Date logic
|
| 29 |
if re.match(r"^\d{1,2}/$", token) or re.match(r"^\d{4}$", token):
|
| 30 |
current_date += token
|