Skip to content

Commit

Permalink
Update PCRA.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrlyk423 authored Aug 30, 2018
1 parent b48738a commit 0120861
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions PTransE/PCRA.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ def map_add1(mp,key):
seg = line.strip().split()
relation2id[seg[0]] = int(seg[1])
id2relation[int(seg[1])]=seg[0]
id2relation[int(seg[1])+ relation_num]="~"+seg[0]
relation_num+=1

for line in f:
seg = line.strip().split()
id2relation[int(seg[1])+relation_num]="~"+seg[0]
f.close()

ok = {}
Expand Down

0 comments on commit 0120861

Please sign in to comment.