Spaces:
Sleeping
Sleeping
Update confidence_score.py
Browse files- confidence_score.py +2 -0
confidence_score.py
CHANGED
|
@@ -132,7 +132,9 @@ def compute_confidence_score_and_tier(
|
|
| 132 |
explanations.append("Accession keyword found in extracted external text.")
|
| 133 |
|
| 134 |
# ---------- Signal 2: Cross-source consistency ----------
|
|
|
|
| 135 |
pred_country = standardize_location.smart_country_lookup(signals.get("predicted_country").lower())
|
|
|
|
| 136 |
if pred_country == "not found":
|
| 137 |
pred_country = normalize_country(signals.get("predicted_country"))
|
| 138 |
gb_country = standardize_location.smart_country_lookup(signals.get("genbank_country").lower())
|
|
|
|
| 132 |
explanations.append("Accession keyword found in extracted external text.")
|
| 133 |
|
| 134 |
# ---------- Signal 2: Cross-source consistency ----------
|
| 135 |
+
print("standardize pre_country")
|
| 136 |
pred_country = standardize_location.smart_country_lookup(signals.get("predicted_country").lower())
|
| 137 |
+
print("pred country after standardizing: ", pred_country)
|
| 138 |
if pred_country == "not found":
|
| 139 |
pred_country = normalize_country(signals.get("predicted_country"))
|
| 140 |
gb_country = standardize_location.smart_country_lookup(signals.get("genbank_country").lower())
|