JayeshSharma commited on
Commit
06f70ba
·
verified ·
1 Parent(s): d323c1e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +67 -0
README.md CHANGED
@@ -3,3 +3,70 @@ license: other
3
  license_name: psf2
4
  license_link: https://docs.python.org/3/license.html
5
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  license_name: psf2
4
  license_link: https://docs.python.org/3/license.html
5
  ---
6
+ # Python Official Documentation Training Dataset
7
+
8
+ An Apache Arrow formatted, tokenized dataset created directly from the official **Python Documentation (500+ pages)**. This dataset is optimized for training and fine-tuning language models on core Python concepts, standard library usage, syntax rules, and official programming guidelines.
9
+
10
+ ---
11
+
12
+ ## Dataset Overview
13
+
14
+ * **Dataset Name:** `python-training-dataset`
15
+ * **Source Material:** Official Python Documentation (500+ pages)
16
+ * **Format:** Apache Arrow (`data-00000-of-00001.arrow`)
17
+
18
+
19
+ * **License:** Python Software Foundation License (`psf2`)
20
+
21
+
22
+ * **Primary Feature:** Pre-tokenized sequence arrays (`input_ids`)
23
+
24
+
25
+
26
+ ---
27
+
28
+ ## Dataset Structure
29
+
30
+ ### Data Schema
31
+
32
+ The dataset contains pre-tokenized token ID lists designed for immediate ingestion into transformer-based neural network models:
33
+
34
+ | Feature | Data Type | Description |
35
+ | --- | --- | --- |
36
+ | `input_ids` | `List(int32)` | Tokenized integer sequence representations derived from Python's official documentation
37
+
38
+ |
39
+
40
+ ---
41
+
42
+ ## Quickstart & Loading
43
+
44
+ You can load this dataset directly using the Hugging Face `datasets` library:
45
+
46
+ ```python
47
+ from datasets import load_dataset
48
+
49
+ # Load dataset from Hugging Face Hub
50
+ dataset = load_dataset("JayeshSharma/python-training-dataset")
51
+
52
+ # Inspect dataset structure
53
+ print(dataset)
54
+
55
+ # Access a single tokenized sequence
56
+ sample = dataset["train"][0]
57
+ print("Token IDs sample:", sample["input_ids"][:10])
58
+
59
+ ```
60
+
61
+ ---
62
+
63
+ ## Intended Use & Applications
64
+
65
+ * **Language Model Pre-training & Fine-tuning:** Enhance LLMs with structured knowledge from official Python language references and standard library documentation.
66
+
67
+
68
+ * **Code Understanding & Generation:** Train models to understand Python syntax, idiomatic code patterns, and core library implementations.
69
+
70
+ > **Note:** Because the text is already converted to `input_ids`, pass these tokens through your corresponding tokenizer's `decode()` method if you need to recover the raw text representations.
71
+ >
72
+ >