Spaces:
Runtime error
Runtime error
somehow autocompleted to wrong word
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def extract_features(tokens, labels):
|
|
| 46 |
# Check if the token matches a partial date pattern
|
| 47 |
elif re.match(partial_date_pattern, token):
|
| 48 |
print(f"Debug -- Potentially building date: Token Start {token} After Token")
|
| 49 |
-
current_date +=
|
| 50 |
else:
|
| 51 |
if current_date:
|
| 52 |
merged_entities.append((current_date, 'date'))
|
|
|
|
| 46 |
# Check if the token matches a partial date pattern
|
| 47 |
elif re.match(partial_date_pattern, token):
|
| 48 |
print(f"Debug -- Potentially building date: Token Start {token} After Token")
|
| 49 |
+
current_date += token
|
| 50 |
else:
|
| 51 |
if current_date:
|
| 52 |
merged_entities.append((current_date, 'date'))
|