Spaces:
Runtime error
Runtime error
update regex
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def extract_features(tokens, labels):
|
|
| 34 |
#partial_date_pattern = r"^\d{1,2}/?$|^[/-]$" # Matches partial date components like "12", "/", "02/", etc.
|
| 35 |
|
| 36 |
date_pattern = r"^\d{2}/\d{2}/\d{2}(\d{2})?$"
|
| 37 |
-
partial_date_pattern = r"\d
|
| 38 |
|
| 39 |
# This is a label AGNOSTIC approach
|
| 40 |
for token, label in zip(tokens, labels):
|
|
|
|
| 34 |
#partial_date_pattern = r"^\d{1,2}/?$|^[/-]$" # Matches partial date components like "12", "/", "02/", etc.
|
| 35 |
|
| 36 |
date_pattern = r"^\d{2}/\d{2}/\d{2}(\d{2})?$"
|
| 37 |
+
partial_date_pattern = r"^\d{1,2}/?$|^/$"
|
| 38 |
|
| 39 |
# This is a label AGNOSTIC approach
|
| 40 |
for token, label in zip(tokens, labels):
|