Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,6 +29,7 @@ def extract_features(tokens, labels):
|
|
| 29 |
print(f"Debug -- Potentially creating date")
|
| 30 |
# Loop through tokens and labels
|
| 31 |
for token, label in zip(tokens, labels):
|
|
|
|
| 32 |
if label == 'LABEL_1':
|
| 33 |
# Date logic
|
| 34 |
if re.match(r"^\d{1,2}/$", token) or re.match(r"^\d{4}$", token):
|
|
|
|
| 29 |
print(f"Debug -- Potentially creating date")
|
| 30 |
# Loop through tokens and labels
|
| 31 |
for token, label in zip(tokens, labels):
|
| 32 |
+
print(f"Debug -- Potentially creating date,, token: {token} label: {label}")
|
| 33 |
if label == 'LABEL_1':
|
| 34 |
# Date logic
|
| 35 |
if re.match(r"^\d{1,2}/$", token) or re.match(r"^\d{4}$", token):
|