-
-
Notifications
You must be signed in to change notification settings - Fork 179
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃摽 馃З Support disconnected nodes in the Relation tokenizer #1064
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
could you add the small snippet from the PR description as a test?
To |
maybe like this? 59e829f |
Cool, works as intended! Thank you :) |
thanks for writing the tests in the first place 馃槈 |
A quick fix for the sampler in relation tokenizer to support graphs where
num_entities
is larger thanpool
size.A script to reproduce the error before/after the fix
Generally, taking care of disconnected nodes in NodePiece in more complex scenarios might take much more effort