(relation)
| 44 | |
| 45 | |
| 46 | def abandon_rels(relation): |
| 47 | useless_relation_list = ["category's main topic", "topic\'s main category", "stack exchange site", 'main subject', 'country of citizenship', "commons category", "commons gallery", "country of origin", "country", "nationality"] |
| 48 | if check_end_word(relation) or 'wikidata' in relation.lower() or 'wikimedia' in relation.lower() or relation.lower() in useless_relation_list: |
| 49 | return True |
| 50 | return False |
| 51 | |
| 52 | |
| 53 | def construct_entity_score_prompt(question, relation, entity_candidates): |
no test coverage detected