Duong2005 commited on
Commit
8913642
·
verified ·
1 Parent(s): c233350

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +53 -20
README.md CHANGED
@@ -1,24 +1,17 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: instruction
5
- dtype: string
6
- - name: input
7
- dtype: string
8
- - name: output
9
- dtype: string
10
- splits:
11
- - name: train
12
- num_bytes: 44673
13
- num_examples: 70
14
- - name: validation
15
- num_bytes: 12703
16
- num_examples: 20
17
- - name: test
18
- num_bytes: 6513
19
- num_examples: 10
20
- download_size: 49717
21
- dataset_size: 63889
22
  configs:
23
  - config_name: default
24
  data_files:
@@ -29,3 +22,43 @@ configs:
29
  - split: test
30
  path: data/test-*
31
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - vi
4
+ license: mit
5
+ task_categories:
6
+ - question-answering
7
+ - text-generation
8
+ tags:
9
+ - python
10
+ - vietnamese
11
+ - instruction-tuning
12
+ - llm-training
13
+ size_categories:
14
+ - n<1K
 
 
 
 
 
 
 
15
  configs:
16
  - config_name: default
17
  data_files:
 
22
  - split: test
23
  path: data/test-*
24
  ---
25
+
26
+ # Bộ Dữ Liệu Huấn Luyện Mô Hình Ngôn Ngữ Hỏi - Đáp Lập Trình Python (Vietnamese Python QA)
27
+
28
+ Bộ dữ liệu gồm **100 mẫu hỏi - đáp chất lượng cao** về ngôn ngữ lập trình Python, được thiết kế chuẩn hóa phục vụ huấn luyện (SFT / Instruction Fine-Tuning) các mô hình ngôn ngữ lớn (LLM).
29
+
30
+ ## 1. Cấu trúc bộ dữ liệu
31
+ - **train**: 70 mẫu (70%)
32
+ - **validation**: 20 mẫu (20%)
33
+ - **test**: 10 mẫu (10%)
34
+
35
+ Mỗi mẫu có định dạng:
36
+ - instruction: Câu hỏi về lý thuyết hoặc thực hành Python.
37
+ - input: Ngữ cảnh / mã đầu vào (hoặc rỗng).
38
+ - output: Câu trả lời sư phạm, chính xác, có code Python minh họa.
39
+
40
+ ## 2. Các chủ đề bao quát
41
+ 1. Cú pháp Python (Indentation, Comments, Docstrings, PEP 8)
42
+ 2. Biến & Đặt tên (Dynamic Typing, Type Hints, Scopes)
43
+ 3. Kiểu dữ liệu & Ép kiểu (int, float, complex, isinstance)
44
+ 4. Câu lệnh điều kiện (if-elif-else, ternary, match-case)
45
+ 5. Vòng lặp (for, while, break, continue, enumerate, zip)
46
+ 6. Hàm (def, *args, **kwargs, lambda, map/filter, generator yield)
47
+ 7. List (Slicing, Comprehension, sort, shallow/deep copy)
48
+ 8. Tuple (Immutability, Packing, Unpacking, namedtuple)
49
+ 9. Dictionary (Keys, Items, Get, Dict Comprehension, Merge)
50
+ 10. Set (Unique, Union, Intersection, Difference, frozenset)
51
+ 11. Chuỗi (f-strings, split, join, strip, find, replace)
52
+ 12. Xử lý ngoại lệ (try-except-else-finally, raise, Custom Exception)
53
+ 13. Đọc ghi file (open modes, with context manager, json, csv)
54
+ 14. Lập trình hướng đối tượng OOP (Class, Object, self, Inheritance, Encapsulation, Polymorphism, Property)
55
+ 15. Thư viện Python phổ biến (math, random, os, sys, re, datetime, requests, numpy, pandas)
56
+
57
+ ## 3. Cách sử dụng với thư viện datasets
58
+ `python
59
+ from datasets import load_dataset
60
+
61
+ dataset = load_dataset('Duong2005/python-qa-vietnamese')
62
+ print(dataset)
63
+ print(dataset['train'][0])
64
+ `