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

How can I get similarity between nl and code of unixcoder and codebert? #326

Open
nevermet opened this issue Oct 22, 2024 · 1 comment
Open

Comments

@nevermet
Copy link

Dear all,

What I like to do is to compare the similarities between nl and code from codebert and unixcoder.

I could see quick tour code on unixcoder explaining how to get the similarity between nl and code but I don't see how to get the similarity between nl and code on the codebert page. My questions are as follows.

  1. Can I change the model on the unixcoder quick tour page from 'microsoft/unixcoder-base' to 'microsoft/codebert-base' to get the similarity result?

  2. I also tried to get the nl embedding and code embedding separately from the code on codebert page. I found that nl embedding shape and code embedding shape is different. Could you tell me how I can get the cosine similarity in this case?

Thank you in advance.

@Leo-Ritchie
Copy link

Hello, I tried to use graphcodebert to detect the similarity again, and it looks similar to your problem, may I ask if you have solved it

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