Commit 6fb32948 authored by Biagio's avatar Biagio

critical fix

parent 4fd145e6
......@@ -215,22 +215,6 @@ class _Base:
name="SDGIO"
)
sdg_source.children.append(tgt_classification)
for ind in indicator_list:
ind_id = ind['id']
ind_confidence = ind['similarity']
ind_kw_attributes = {k: f"{v}_{ind_id}" for k, v in kw_attributes.items() if k != "dictionary"}
ind_kw_attributes["dictionary"] = "SDGIO"
ind_ref_attributes = {k: f"{v}_{ind_id}" for k, v in ref_attributes.items()}
document.classification[ind_kw_attributes["eId"]] = Reference("keyword", **ind_kw_attributes)
document.references[ind_ref_attributes["eId"]] = Reference("TLCConcept", **ind_ref_attributes)
ind_classification = Reference(
"sdgIndicator",
namespace="akn4un",
value=ind_kw_attributes["value"],
confidence=ind_confidence,
name="SDGIO"
)
sdg_source.children.append(ind_classification)
document.sdg_sources.append(sdg_source)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment