lenarc commited on
Commit
1671db1
·
verified ·
1 Parent(s): a3c7282

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +79 -3
README.md CHANGED
@@ -1,3 +1,79 @@
1
- ---
2
- license: agpl-3.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: agpl-3.0
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - lua
9
+ - code
10
+ - ygo
11
+ size_categories:
12
+ - 10K<n<100K
13
+ ---
14
+
15
+ # YGOPro Lua Code Generation Dataset
16
+
17
+ ## Dataset Description
18
+
19
+ This dataset contains Yu-Gi-Oh! card effects written with correct PSCT (Problem-Solving card text) paired with their corresponding YGOPro Lua script implementations. It's designed for training models to generate functional Lua code for YGOPro (Yu-Gi-Oh! Pro) simulator from natural language card effect descriptions.
20
+
21
+ ## Dataset Structure
22
+
23
+ ### Data Fields
24
+
25
+ - `instruction`: The task instruction (constant across all examples)
26
+ - `input`: Natural language description of the Yu-Gi-Oh! card effect
27
+ - `output`: Corresponding YGOPro Lua script implementation
28
+
29
+ ### Data Splits
30
+
31
+ - **Train**: 90% of availablle examples
32
+ - **Validation**: 10% of available examples
33
+
34
+ ## Usage
35
+
36
+ ### Loading the Dataset
37
+
38
+ ```python
39
+ from datasets import load_dataset
40
+
41
+ dataset = load_dataset("{lenarc/psct_lua}")
42
+
43
+ # Access train split
44
+ train_data = dataset["train"]
45
+
46
+ # Access validation split
47
+ val_data = dataset["validation"]
48
+ ```
49
+
50
+ ### Example Usage for Fine-tuning
51
+
52
+ ```python
53
+ # For training with Unsloth/transformers
54
+ from datasets import load_dataset
55
+
56
+ dataset = load_dataset("lenarc/psct_lua")
57
+
58
+ # The dataset is ready to use for instruction-following model training
59
+ # Each example has: instruction, input (card effect), output (lua code)
60
+ ```
61
+
62
+ ## Dataset Creation
63
+
64
+ This dataset was created by collecting Yu-Gi-Oh! card effects and their corresponding YGOPro Lua implementations. The data has been formatted for instruction-following fine-tuning.
65
+
66
+ ## Intended Use
67
+
68
+ - Fine-tuning language models for code generation
69
+ - Training models to convert natural language game rules to executable code
70
+ - Research in domain-specific code generation
71
+ - Educational purposes for learning Lua scripting for YGOPro
72
+
73
+ ## License
74
+
75
+ This dataset is released under the GNU Affero General Public License v3.0 (AGPL-3.0), consistent with the YGOPro project licensing.
76
+
77
+ ## Disclaimer
78
+
79
+ This dataset is for educational and research purposes. Yu-Gi-Oh! is a trademark of Konami Digital Entertainment.