Commit
·
95747e4
1
Parent(s):
66102da
add comp back
Browse files- generic_ner.py +2 -1
generic_ner.py
CHANGED
@@ -458,8 +458,9 @@ def postprocess_entities(entities):
|
|
458 |
|
459 |
# Step 2: Attach "comp.function" entities to the closest other entities
|
460 |
filtered_entities = attach_comp_to_closest(filtered_entities)
|
461 |
-
|
462 |
filtered_entities = repair_names_in_entities(filtered_entities)
|
|
|
463 |
|
464 |
# Step 3: Remove entities that are not useful for NEL
|
465 |
# filtered_entities = clean_coarse_entities(filtered_entities)
|
|
|
458 |
|
459 |
# Step 2: Attach "comp.function" entities to the closest other entities
|
460 |
filtered_entities = attach_comp_to_closest(filtered_entities)
|
461 |
+
print("After attach_comp_to_closest:", filtered_entities, "\n")
|
462 |
filtered_entities = repair_names_in_entities(filtered_entities)
|
463 |
+
print("After repair_names_in_entities:", filtered_entities, "\n")
|
464 |
|
465 |
# Step 3: Remove entities that are not useful for NEL
|
466 |
# filtered_entities = clean_coarse_entities(filtered_entities)
|