Spaces:
Sleeping
Sleeping
Commit
·
4c96122
1
Parent(s):
8362ae9
added a new loggers for normalizations
Browse files- documents_prep.py +0 -1
documents_prep.py
CHANGED
|
@@ -50,7 +50,6 @@ def normalize_steel_designations(text):
|
|
| 50 |
}
|
| 51 |
|
| 52 |
# Regex to match steel designations like 08X18H10T, 10H17N13M2T, etc.
|
| 53 |
-
# Explanation:
|
| 54 |
# \b\d{1,3} — starts with 1–3 digits
|
| 55 |
# (?:[A-ZА-Я]\d*)+ — then one or more groups of a letter + optional digits
|
| 56 |
pattern = r'\b\d{1,3}(?:[A-ZА-Я]\d*)+\b'
|
|
|
|
| 50 |
}
|
| 51 |
|
| 52 |
# Regex to match steel designations like 08X18H10T, 10H17N13M2T, etc.
|
|
|
|
| 53 |
# \b\d{1,3} — starts with 1–3 digits
|
| 54 |
# (?:[A-ZА-Я]\d*)+ — then one or more groups of a letter + optional digits
|
| 55 |
pattern = r'\b\d{1,3}(?:[A-ZА-Я]\d*)+\b'
|