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

Javascript Benchmark with Code2Vec #177

Open
zunairazaman2021 opened this issue Feb 20, 2023 · 3 comments
Open

Javascript Benchmark with Code2Vec #177

zunairazaman2021 opened this issue Feb 20, 2023 · 3 comments

Comments

@zunairazaman2021
Copy link

Hi @urialon, Is there a way to run Code2Vec on Javascript Benchmarks. Can you guide me how do we get Code2Vec input format for Javascript benchmarks.
Currently, I am using ASTminer library but the results I get look like this
Uploading Screenshot 2023-02-20 at 08.53.01.png…

@urialon
Copy link
Collaborator

urialon commented Feb 21, 2023

Hi @zunairazaman2021 ,
Thank you for your interest in our work!

Our repository supports only Java and C#.
We have a newer model that supports all languages called PolyCoder. Loading it takes only a few lines of code using the Huggingface Transformers library. see:

https://arxiv.org/pdf/2202.13169.pdf
https://github.com/VHellendoorn/Code-LMs#october-2022---polycoder-is-available-on-huggingface

We also have another project called CodeBERTScore: https://github.com/neulab/code-bert-score
Where we trained a CodeBERT model specifically for JavaScript. See: https://github.com/neulab/code-bert-score#backend-model

Best,
Uri

@zunairazaman
Copy link

@urialon considering I want to use Code2Vec to predict "what is happening in a JS method/file". Do you think CodeBERTScore can be applied for such case study.

@urialon
Copy link
Collaborator

urialon commented Feb 28, 2023

Not out of the box, you will need to train 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

3 participants