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

Function transform_relation

ToG/wiki_func.py:8–10  ·  view source on GitHub ↗
(relation)

Source from the content-addressed store, hash-verified

6from utils import *
7
8def transform_relation(relation):
9 relation_without_prefix = relation.replace("wiki.relation.", "").replace("_", " ")
10 return relation_without_prefix
11
12
13def clean_relations(string, entity_id, head_relations):

Callers 1

clean_relationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected