test
This commit is contained in:
parent
a064d12763
commit
975a0a77c2
2
main.py
2
main.py
@ -94,6 +94,8 @@ class Main(object):
|
||||
|
||||
# self.ent2id = {ent: idx for idx, ent in enumerate(ent_set)}
|
||||
# self.rel2id = {rel: idx for idx, rel in enumerate(rel_set)}
|
||||
|
||||
print("Num rel1: " + str(len(self.rel2id)))
|
||||
self.rel2id.update({rel+'_reverse': idx+len(self.rel2id)
|
||||
for idx, rel in enumerate(rel_set)})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user