Wannita commited on
Commit
edd457a
·
1 Parent(s): cd0c247

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -0
README.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PyCoder
2
+
3
+ This repository contains the baseline model for the paper [Syntax-Aware On-the-Fly Code Completion](https://arxiv.org/abs/2211.04673)
4
+
5
+ The sample code to run the model can be found in the directory: "`assets/notebooks/inference.ipynb`" in our GitHub: https://github.com/awsm-research/pycoder.
6
+
7
+ PyCoder is an auto code completion model which leverages a Multi-Task Training technique (MTT) to cooperatively
8
+ learn the code prediction task and the type prediction task. For the type prediction
9
+ task, we propose to leverage the standard Python token
10
+ type information (e.g., String, Number, Name, Keyword),
11
+ which is readily available and lightweight, instead of using
12
+ the AST information which requires source code to be parsable for an extraction, limiting its ability to perform on-the-fly code completion (see Section 2.3 in our paper).
13
+
14
+ More information can be found in our paper.
15
+
16
+ If you use our code or PyCoder, please cite our paper.
17
+
18
+ <pre><code>@article{takerngsaksiri2022syntax,
19
+ title={Syntax-Aware On-the-Fly Code Completion},
20
+ author={Takerngsaksiri, Wannita and Tantithamthavorn, Chakkrit and Li, Yuan-Fang},
21
+ journal={arXiv preprint arXiv:2211.04673},
22
+ year={2022}
23
+ }</code></pre>