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
can I get embedding for java code snippet? #164
Comments
@guoday please help 🙏 |
a) You can. Please follow CodeBERT readme. But the embeddings are not good. |
@guoday What would be your response if I try this with |
You can try to use UniXcoder. |
@guoday is the UniXcoder a better bit for feeding multiple function and get embedding for the whole snippet? Example below:
|
yes |
I am looking into the following example to extract code embedding.
So I suppose I can get embedding for a python function from this
max_func_embedding
.However, I have the following three questions:
a) Can I use CodeBERT to extract embedding for Java code?
b) Can I feed incomplete JavaScript code to extract embedding? Or the code snippet needs to be complete?
And most importantly:
c) Can I feed multiple function and get embedding for the whole snippet?
Lets say the code snippet has two functions and slightly incomplete:
Will Unixcoder even generate embedding for this case?
The text was updated successfully, but these errors were encountered: