You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for line in f:
seg = line.strip().split()
relation2id[seg[0]] = int(seg[1])
id2relation[int(seg[1])]=seg[0]
id2relation[int(seg[1])+1345]="~"+seg[0]
relation_num+=1
f.close()
What does 1345 in line 26 represent? Is this adding a negative label to the end of the list? Is 1345 some default number of ids?
The text was updated successfully, but these errors were encountered:
From PTransE/PCRA.py:
What does
1345
in line 26 represent? Is this adding a negative label to the end of the list? Is 1345 some default number of ids?The text was updated successfully, but these errors were encountered: