sriniiyer / concode Goto Github PK
View Code? Open in Web Editor NEWMapping Language to Code in a Programmatic Context
License: MIT License
Mapping Language to Code in a Programmatic Context
License: MIT License
Hello,
While trying to execute the prediction task, I have the following Error :
RuntimeError: Only Tensors created explicitly by the user (graph leaves) support the deepcopy protocol at the moment
The error is caused by this line of code : "predictions.append(model.predict(batch, opt, None))" (line : 57 / translate.py)
Did you get the same error in some steps?
How could I fix this issue?
Thanks in advance,
Best Regards.
Hi,Is anyone still maintaining this project? The data link in the manual is invalid.
I am quite interest in this project.I have read the related paper and studied the code for a few days. If anyone have the dataset please drop me a message
hello,the link about Downloading data from Google drive is unusable.Can you provide the latest data set download link?Thanks.
Hello,
I want to bypass all training process, to test a zero-shot to CONCODE model in some personal dataset.
Where Can I find CONCODE pretrained model ?
Thank you in advance.
Best Regards.
Hey @sriniiyer,
I am trying to augment the dataset with custom code snippets.
how can I convert code snippets which contain context and docstring as NL queries into concode dataset format.
I've found that many of the code snippets in ConCode reference methods that aren't defined in the memberFunctions
field. An example is line 13 of test_shuffled.json
, printed below. The code references a function called search()
, but it's not defined in the metadata. I'm assuming that what happened here is that the file this was taken from statically imported the (static) search()
method from some other class, but I just wanted to check that this is indeed why this happens and that you're aware of this feature of the dataset.
{
"memberVariables": {
"middle": "TSTNode",
"data": "char",
"left": "TSTNode",
"root": "TSTNode",
"right": "TSTNode",
"al": "ArrayList<String>",
"is_End_Of_String": "boolean"
},
"code": [
"boolean",
"function",
"(",
"String",
"word",
")",
"{",
"return",
"search",
"(",
"root",
",",
"word",
".",
"toCharArray",
"(",
")",
",",
"0",
")",
";",
"}"
],
"memberFunctions": {
"traverse": [
[
"void",
"TSTNode key",
"String str"
]
],
"makeEmpty": [
[
"void"
]
],
"isEmpty": [
[
"boolean"
]
],
"insert": [
[
"void",
"String word"
],
[
"TSTNode",
"TSTNode key",
"char[] word",
"int pos"
]
],
"toString": [
[
"String"
]
],
"main": [
[
"void",
"String[] args"
]
],
"delete": [
[
"void",
"String word"
],
[
"void",
"TSTNode key",
"char[] word",
"int pos"
]
]
},
"repo": "repo_24058027",
"className": "TernarySearchTree",
"renamed": [
"boolean",
"function",
"(",
"String",
"arg0",
")",
"{",
"return",
"search",
"(",
"root",
",",
"arg0",
".",
"toCharArray",
"(",
")",
",",
"0",
")",
";",
"}"
],
"nl": "function to search for a word",
"nlToks": [
"function",
"to",
"search",
"for",
"a",
"word"
]
}
Hello, I am very interested in your work in this article. I would like to know what hardware configuration is required to train this model?
Hi Srini,
Do you have more than 100k instances? I found, in your google drive, the data is already truncated to 100k. Looks like CONCODE is a well-established dataset for code gen task. I am wondering if I can explore more CONCODE data. Btw, how the research going?
Thanks,
Hi,
Thanks for sharing your code. Could you please associate a license to it? Without any license, nobody has the right to reuse your code, even for other research.
If you don't know which license to chose, I would suggest MIT which gives the most liberty to people or GPL which ensures the copies of your code will stay free.
Best regards,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.