MCPcopy Create free account
hub / github.com/DeepGraphLearning/FewShotRE / __init__

Method __init__

fewshot_re_kit/old_data_loader.py:59–208  ·  view source on GitHub ↗

file_name: Json file storing the data in the following format { "P155": # relation id [ { "h": ["song for a future generation", "Q7561099", [[16, 17, ...]]], # head entity [word, id, location

(self, file_name, word_vec_file_name, max_length=40, case_sensitive=False, reprocess=False, cuda=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected