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

About Triple2Seq part #4

Closed
zhiweihu1103 opened this issue Oct 20, 2022 · 7 comments
Closed

About Triple2Seq part #4

zhiweihu1103 opened this issue Oct 20, 2022 · 7 comments

Comments

@zhiweihu1103
Copy link

zhiweihu1103 commented Oct 20, 2022

I saw that in the Triple2Seq section, it is mentioned that the neighbors are triple-level, but in the preprocessing code.

def get_triplet(triplet):
In fact, it is entity-level. For example, for [0, 1, mask_id] and [0, 2, mask_id], the corresponding get_triplet output is exactly the same. If it is triple-level, because the relations of the two triplet are different, and the output should be different. Can you explain this?

@bizhen46766
Copy link
Collaborator

Thanks for your comments. get_triplet function will generate all neighborhood triplets surrounding the entities. The input to this function is the head or tail entity, not an entity-relation pair.

@zhiweihu1103
Copy link
Author

Would you mind telling me where entity-relation pair information is involved?

@bizhen46766
Copy link
Collaborator

My previous reply might cause some confusion and sorry for that. We sample the triplet based on the entity and then generate the relevant triplets. We are not sampling based on entity-relation pair but generate the final outputs in triple-level. Triple2Seq is the process of converting the original triple to a sequence with surrounding contextual triples.

@bizhen46766
Copy link
Collaborator

bizhen46766 commented Oct 20, 2022

Can you add my Wechat so we can have a nice communication?

@zhiweihu1103
Copy link
Author

OK, no problem.

@liang-ry
Copy link

liang-ry commented Nov 7, 2022

communication
I have some questions about triple2Seq. Can I add your Wechat?

@bizhen46766
Copy link
Collaborator

bizhen46766 commented Nov 7, 2022

Welcome to discuss

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

3 participants