Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
tags:
|
5 |
+
- transformers
|
6 |
+
license: apache-2.0
|
7 |
+
datasets:
|
8 |
+
- dvitel/hearthstone
|
9 |
+
metrics:
|
10 |
+
- exact_match
|
11 |
+
- bleu
|
12 |
+
- dvitel/codebleu
|
13 |
+
- chrf
|
14 |
+
---
|
15 |
+
|
16 |
+
Application of distilgpt2 to HearthStone card code synthesis. Dataset [dvitel/hearthstone](https://huggingface.co/datasets/dvitel/hearthstone) \
|
17 |
+
Article under consideration: [Abstract Syntax Networks for Code Generation and Semantic Parsing](https://aclanthology.org/P17-1105.pdf) \
|
18 |
+
We check if distilgpt2 could produce better results than ASNs from article. H0 model has minimal preprocessing of dataset where we normalize python code:
|
19 |
+
|
20 |
+
```python
|
21 |
+
def normalize(line:str):
|
22 |
+
return line.strip().replace("§", "\n").replace(" ", "\t").replace("\\ ", "").replace("\n\n", "\n")
|
23 |
+
```
|