Spaces:
Sleeping
Sleeping
Commit ·
07b9b37
1
Parent(s): 4c37565
Modify that if unit is not in the mapping table, then retain the original one.
Browse files- modules/mapping.py +1 -1
modules/mapping.py
CHANGED
|
@@ -50,7 +50,7 @@ def mapping_unit(information, json_path, normalization_rule):
|
|
| 50 |
if unit_score >= 80:
|
| 51 |
item["unit_id"] = normalized_cached_map[unit_match]
|
| 52 |
else:
|
| 53 |
-
item["unit_id"] =
|
| 54 |
|
| 55 |
return information
|
| 56 |
|
|
|
|
| 50 |
if unit_score >= 80:
|
| 51 |
item["unit_id"] = normalized_cached_map[unit_match]
|
| 52 |
else:
|
| 53 |
+
item["unit_id"] = item["unit"]
|
| 54 |
|
| 55 |
return information
|
| 56 |
|