MCPcopy Create free account
hub / github.com/DataArcTech/ToG / replace_entities_prefix

Function replace_entities_prefix

ToG/freebase_func.py:33–34  ·  view source on GitHub ↗
(entities)

Source from the content-addressed store, hash-verified

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

Callers 1

entity_searchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected