AhmedSSoliman commited on
Commit
5325fd6
1 Parent(s): c4f641a

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +47 -0
README.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Concode dataset
2
+
3
+ A large dataset with over 100,000 examples consisting of Java classes from online code repositories, and develop a new encoder-decoder architecture that models the interaction between the method documentation and the class environment.
4
+
5
+ Concode dataset is a widely used code generation dataset from Iyer's EMNLP 2018 paper [Mapping Language to Code in Programmatic Context](https://www.aclweb.org/anthology/D18-1192.pdf).
6
+
7
+
8
+
9
+ Data statistics of concode dataset are shown in the below table:
10
+
11
+ | | #Examples |
12
+ | ------- | :---------: |
13
+ | Train | 100,000 |
14
+ | Dev | 2,000 |
15
+ | Test | 2,000 |
16
+
17
+ ### Data Format
18
+
19
+ Code corpus are saved in json lines format files. one line is a json object:
20
+ ```
21
+ {
22
+ "nl": "Increment this vector in this place. con_elem_sep double[] vecElement con_elem_sep double[] weights con_func_sep void add(double)",
23
+ "code": "public void inc ( ) { this . add ( 1 ) ; }"
24
+ }
25
+ ```
26
+
27
+ `nl` combines natural language description and class environment. Elements in class environment are seperated by special tokens like `con_elem_sep` and `con_func_sep`.
28
+
29
+
30
+ ## Task Definition
31
+
32
+ Generate source code of class member functions in Java, given natural language description and class environment. Class environment is the programmatic context provided by the rest of the class, including other member variables and member functions in class. Models are evaluated by exact match and BLEU.
33
+
34
+ It's a challenging task because the desired code can vary greatly depending on the functionality the class provides. Models must (a) have a deep understanding of NL description and map the NL to environment variables, library API calls and user-defined methods in the class, and (b) decide on the structure of the resulting code.
35
+
36
+
37
+
38
+ ## Reference
39
+
40
+ Concode dataset:
41
+
42
+ <pre><code>@article{iyer2018mapping,
43
+ title={Mapping language to code in programmatic context},
44
+ author={Iyer, Srinivasan and Konstas, Ioannis and Cheung, Alvin and Zettlemoyer, Luke},
45
+ journal={arXiv preprint arXiv:1808.09588},
46
+ year={2018}
47
+ }</code></pre>