Spaces:
Running
Running
VladGeekPro commited on
Commit ·
1b009a2
1
Parent(s): c743599
FixedSupplierErrorPizza9
Browse files
extractors/supplier_extractor.py
CHANGED
|
@@ -328,9 +328,6 @@ class ExpenseSupplierExtractor:
|
|
| 328 |
if token.isdigit():
|
| 329 |
if token in self.sup_number_tokens:
|
| 330 |
tokens.append(token)
|
| 331 |
-
|
| 332 |
-
if tokens and len(token) <= 3 and len(tokens[-1]) >= 4 and tokens[-1].isalpha():
|
| 333 |
-
tokens.append(f"{tokens[-1]}{token}")
|
| 334 |
continue
|
| 335 |
|
| 336 |
if len(token) > 1:
|
|
|
|
| 328 |
if token.isdigit():
|
| 329 |
if token in self.sup_number_tokens:
|
| 330 |
tokens.append(token)
|
|
|
|
|
|
|
|
|
|
| 331 |
continue
|
| 332 |
|
| 333 |
if len(token) > 1:
|