Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magic Integer 1345 in PCRA.py #17

Closed
laxatives opened this issue May 30, 2017 · 1 comment
Closed

Magic Integer 1345 in PCRA.py #17

laxatives opened this issue May 30, 2017 · 1 comment

Comments

@laxatives
Copy link

laxatives commented May 30, 2017

From PTransE/PCRA.py:

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?

@laxatives
Copy link
Author

$ wc -l relation2id.txt
    1345 relation2id.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant