Datasets:
KaraKaraWitch
commited on
Commit
•
a84bf57
1
Parent(s):
72245e9
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
annotations_creators:
|
3 |
+
- no-annotation
|
4 |
+
language_creators:
|
5 |
+
- crowdsourced
|
6 |
+
license:
|
7 |
+
- cc-by-sa-3.0
|
8 |
+
task_categories:
|
9 |
+
- text-generation
|
10 |
+
- fill-mask
|
11 |
+
task_ids:
|
12 |
+
- language-modeling
|
13 |
+
- masked-language-modeling
|
14 |
+
source_datasets:
|
15 |
+
- original
|
16 |
+
language:
|
17 |
+
- en
|
18 |
+
- es
|
19 |
+
- fr
|
20 |
+
- ja
|
21 |
+
- ko
|
22 |
+
- pt
|
23 |
+
- ru
|
24 |
+
- zho
|
25 |
+
configs:
|
26 |
+
- config_name: default
|
27 |
+
data_files:
|
28 |
+
- split: conversational
|
29 |
+
path: data/*_convo.jsonl.gz
|
30 |
+
- split: QA
|
31 |
+
path: data/*_qa.jsonl.gz
|
32 |
+
pretty_name: MDN
|
33 |
+
---
|
34 |
+
|
35 |
+
# Dataset Card for MDN
|
36 |
+
|
37 |
+
<!-- TODO: Waifu-->
|
38 |
+
|
39 |
+
*Waifu to catch your attention.*
|
40 |
+
|
41 |
+
### Dataset Description
|
42 |
+
|
43 |
+
*MDN* is a **~1.15 M** Tokens (llama-2-7b-chat-tokenizer) / **~999.32K** Tokens (RWKV Tokenizer) scrape of [MDN (Developer.mozilla.org)](https://developer.mozilla.org/).
|
44 |
+
It serves as a training resource for large language models and other NLP tasks.
|
45 |
+
This card details the dataset's origin, content, and limitations.
|
46 |
+
|
47 |
+
|
48 |
+
- **Curated by:** KaraKaraWitch
|
49 |
+
- **Funded by [optional]:** Recursal.ai (I work there lol)
|
50 |
+
- **Shared by [optional]:** KaraKaraWitch
|
51 |
+
- **Language(s) (NLP):** English, Espanol, French, Japanese, Korean, Brazilian Portuguese, Russian, Chinese Simplified, Chinese Traditional
|
52 |
+
- **License:** cc-by-sa-2.5
|
53 |
+
|
54 |
+
MDN was created under time constraints for the release of [EagleX v1](https://huggingface.co/recursal/EagleX_1-7T_HF), and may contain biases in selection.
|
55 |
+
|
56 |
+
### Supported Tasks and Leaderboards
|
57 |
+
|
58 |
+
Primarily used for language modeling.
|
59 |
+
|
60 |
+
### Languages
|
61 |
+
|
62 |
+
MDN lists the following languages:
|
63 |
+
|
64 |
+
- English
|
65 |
+
- Espanol
|
66 |
+
- French
|
67 |
+
- Japanese
|
68 |
+
- Korean
|
69 |
+
- Brazilian Portuguese
|
70 |
+
- Russian
|
71 |
+
- Chinese Simplified
|
72 |
+
- Chinese Traditional
|
73 |
+
|
74 |
+
### Processing
|
75 |
+
|
76 |
+
We obtained a list of pages to download with the MDN's [sitemap.xml.](https://developer.mozilla.org/sitemap.xml) This was manually downloaded. For each sitemap, we scrape the website. saving the raw html responses for further filtering and cleaning.
|
77 |
+
|
78 |
+
For the actual html processing, we recommend reading the code found in the file: `MDNClean.py`.
|
79 |
+
|
80 |
+
The file itself is a typer application with the following commands:
|
81 |
+
|
82 |
+
```
|
83 |
+
- sitemap
|
84 |
+
- Gets a list of urls to download and downloads it to a folder.
|
85 |
+
- clean
|
86 |
+
- cleans a folder. saving each the cleaned text to a final jsonl.
|
87 |
+
```
|
88 |
+
|
89 |
+
### Data Instances
|
90 |
+
|
91 |
+
Refer to this sample to see all the relavant fields.
|
92 |
+
|
93 |
+
```json
|
94 |
+
{
|
95 |
+
"title": "Game development",
|
96 |
+
"text": "\n\nGame development\n================\n\nGaming is one of the most popular computer activities. New technologies are constantly arriving to make\n it possible to develop better and more powerful games that can be run in any standards-compliant web\n browser.\n\nDevelop web games\n-----------------\n\nWelcome to the MDN game development center! In this area of the site, we provide resources for web<...TRUNCATED>"
|
97 |
+
}
|
98 |
+
```
|
99 |
+
|
100 |
+
The format has the following keys:
|
101 |
+
|
102 |
+
```md
|
103 |
+
- "title" (str) [The title of the article]
|
104 |
+
- "text" (str) [The html content converted fro html into markdown.]
|
105 |
+
```
|
106 |
+
|
107 |
+
### Dataset Curators
|
108 |
+
|
109 |
+
KaraKaraWitch. (I typically hang out in PygmalionAI discord, sometimes EleutherAI. If something is wrong, `@karakarawitch` on discord.)
|
110 |
+
|
111 |
+
I'd be happy if you could spread the word and recommend this dataset.
|
112 |
+
|
113 |
+
### Licensing Information
|
114 |
+
|
115 |
+
MDN lists their license as [CC-BY-SA.](https://developer.mozilla.org/en-US/docs/MDN/Writing_guidelines/Attrib_copyright_license)
|
116 |
+
|
117 |
+
### Citation Information
|
118 |
+
|
119 |
+
```
|
120 |
+
@misc{MDN,
|
121 |
+
title = {MDN},
|
122 |
+
author = {KaraKaraWitch, recursal.ai},
|
123 |
+
year = {2023},
|
124 |
+
howpublished = {\url{https://huggingface.co/datasets/recursal/MDN}},
|
125 |
+
}
|
126 |
+
```
|