(entities)
| 31 | return [relation['relation']['value'].replace("http://rdf.freebase.com/ns/","") for relation in relations] |
| 32 | |
| 33 | def replace_entities_prefix(entities): |
| 34 | return [entity['tailEntity']['value'].replace("http://rdf.freebase.com/ns/","") for entity in entities] |
| 35 | |
| 36 | |
| 37 | def id2entity_name_or_type(entity_id): |