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

Regarding Code Generation task. #20

Closed
BakingBrains opened this issue Nov 29, 2021 · 3 comments
Closed

Regarding Code Generation task. #20

BakingBrains opened this issue Nov 29, 2021 · 3 comments

Comments

@BakingBrains
Copy link

Can I use it for Code generation?
For example if I give a query, "Add two numbers", and it should generate the code for that.
And if Yes, can you please suggest how can I prepare the dataset for this task or can I use the dataset which you mentioned.

Thank you

@yuewang-cuhk
Copy link
Contributor

Yes, you can fine-tune CodeT5 on such code generation task. For data collection, one suggestion is to crawl code corpus with both code and its comments (similar to CodeSearchNet), and employ the comment texts as the source to generate the paired code.

@BakingBrains
Copy link
Author

@yuewang-cuhk Thanks for the reply.

I will try, meanwhile can you please suggest if possible better way to employ the comment texts as the source to generate the paired code.

@yuewang-cuhk
Copy link
Contributor

You may also get such data from some Code-QA platforms such as Stack Overflow.

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