(entity_candidates)
| 137 | |
| 138 | |
| 139 | def del_unknown_entity(entity_candidates): |
| 140 | if len(entity_candidates)==1 and entity_candidates[0]=="UnName_Entity": |
| 141 | return entity_candidates |
| 142 | entity_candidates = [candidate for candidate in entity_candidates if candidate != "UnName_Entity"] |
| 143 | return entity_candidates |
| 144 | |
| 145 | |
| 146 | def clean_scores(string, entity_candidates): |