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

Question about the mask in code #18

Open
handsomelys opened this issue Jan 25, 2023 · 2 comments
Open

Question about the mask in code #18

handsomelys opened this issue Jan 25, 2023 · 2 comments

Comments

@handsomelys
Copy link

I would like to ask, what do triplet masks and other masks in the code do? Looking forward to your answer!

@intfloat
Copy link
Owner

As said in the paper:

During training, there may exist some false negatives. 
For example, the correct entity happens to appear in another triple within the same batch. 
We filter out such entities with a binary mask.

If a <h, r, t> triple is true according to the training data,
we do not consider t as a negative.
We use a mask to implement this mechanism.

@handsomelys
Copy link
Author

thanks!

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

2 participants