Datasets:
Update dataset card: fix languages (am → es), add experiments link
#1
by madiedgar - opened
README.md
CHANGED
|
@@ -4,7 +4,7 @@ task_categories:
|
|
| 4 |
- text-generation
|
| 5 |
language:
|
| 6 |
- zh
|
| 7 |
-
-
|
| 8 |
- ur
|
| 9 |
tags:
|
| 10 |
- code
|
|
@@ -18,7 +18,7 @@ pretty_name: Language Decoded Community
|
|
| 18 |
|
| 19 |
# Language Decoded — Community Code
|
| 20 |
|
| 21 |
-
A dataset of Python code written by native speakers using [Legesher](https://github.com/
|
| 22 |
|
| 23 |
## Purpose
|
| 24 |
|
|
@@ -36,7 +36,7 @@ language-decoded-community/
|
|
| 36 |
├── zh/ (Chinese)
|
| 37 |
│ ├── tier-1/ (basic exercises)
|
| 38 |
│ └── tier-2/ (intermediate exercises)
|
| 39 |
-
├──
|
| 40 |
│ ├── tier-1/
|
| 41 |
│ └── tier-2/
|
| 42 |
├── ur/ (Urdu)
|
|
@@ -52,7 +52,7 @@ We welcome code submissions from native speakers of any language supported by Le
|
|
| 52 |
### Submission Requirements
|
| 53 |
|
| 54 |
1. **Valid Python** — your code must parse without syntax errors
|
| 55 |
-
2. **Uses Legesher keywords** — write using your language's translated keywords (see [supported languages](https://github.com/
|
| 56 |
3. **Include a metadata header** at the top of each file:
|
| 57 |
|
| 58 |
```python
|
|
@@ -73,7 +73,7 @@ We welcome code submissions from native speakers of any language supported by Le
|
|
| 73 |
```bash
|
| 74 |
pip install huggingface_hub
|
| 75 |
huggingface-cli login
|
| 76 |
-
huggingface-cli upload
|
| 77 |
```
|
| 78 |
|
| 79 |
### Exercise Tiers
|
|
@@ -89,18 +89,19 @@ huggingface-cli upload Legesher/language-decoded-community ./my_code.py zh/tier-
|
|
| 89 |
from datasets import load_dataset
|
| 90 |
|
| 91 |
# Load all submissions
|
| 92 |
-
ds = load_dataset("
|
| 93 |
|
| 94 |
# Load a specific language
|
| 95 |
-
ds = load_dataset("
|
| 96 |
```
|
| 97 |
|
| 98 |
## Related Resources
|
| 99 |
|
| 100 |
-
- **Transpiled datasets**: [
|
| 101 |
-
- **Models**: [
|
| 102 |
-
- **
|
|
|
|
| 103 |
|
| 104 |
## License
|
| 105 |
|
| 106 |
-
Apache 2.0 — all contributions are released under this license.
|
|
|
|
| 4 |
- text-generation
|
| 5 |
language:
|
| 6 |
- zh
|
| 7 |
+
- es
|
| 8 |
- ur
|
| 9 |
tags:
|
| 10 |
- code
|
|
|
|
| 18 |
|
| 19 |
# Language Decoded — Community Code
|
| 20 |
|
| 21 |
+
A dataset of Python code written by native speakers using [Legesher](https://github.com/legesher/legesher) translated keywords in their own language. Unlike the transpiled datasets in [language-decoded-data](https://huggingface.co/datasets/legesher/language-decoded-data), this code is **human-authored** — written naturally by people thinking and coding in their native language.
|
| 22 |
|
| 23 |
## Purpose
|
| 24 |
|
|
|
|
| 36 |
├── zh/ (Chinese)
|
| 37 |
│ ├── tier-1/ (basic exercises)
|
| 38 |
│ └── tier-2/ (intermediate exercises)
|
| 39 |
+
├── es/ (Spanish)
|
| 40 |
│ ├── tier-1/
|
| 41 |
│ └── tier-2/
|
| 42 |
├── ur/ (Urdu)
|
|
|
|
| 52 |
### Submission Requirements
|
| 53 |
|
| 54 |
1. **Valid Python** — your code must parse without syntax errors
|
| 55 |
+
2. **Uses Legesher keywords** — write using your language's translated keywords (see [supported languages](https://github.com/legesher/legesher))
|
| 56 |
3. **Include a metadata header** at the top of each file:
|
| 57 |
|
| 58 |
```python
|
|
|
|
| 73 |
```bash
|
| 74 |
pip install huggingface_hub
|
| 75 |
huggingface-cli login
|
| 76 |
+
huggingface-cli upload legesher/language-decoded-community ./my_code.py zh/tier-1/my_code.py --repo-type dataset
|
| 77 |
```
|
| 78 |
|
| 79 |
### Exercise Tiers
|
|
|
|
| 89 |
from datasets import load_dataset
|
| 90 |
|
| 91 |
# Load all submissions
|
| 92 |
+
ds = load_dataset("legesher/language-decoded-community")
|
| 93 |
|
| 94 |
# Load a specific language
|
| 95 |
+
ds = load_dataset("legesher/language-decoded-community", data_dir="zh")
|
| 96 |
```
|
| 97 |
|
| 98 |
## Related Resources
|
| 99 |
|
| 100 |
+
- **Transpiled datasets**: [legesher/language-decoded-data](https://huggingface.co/datasets/legesher/language-decoded-data)
|
| 101 |
+
- **Models**: [legesher/language-decoded-lora](https://huggingface.co/legesher/language-decoded-lora)
|
| 102 |
+
- **Experiment tracking**: [legesher/language-decoded-experiments](https://huggingface.co/datasets/legesher/language-decoded-experiments)
|
| 103 |
+
- **Legesher project**: [github.com/legesher/legesher](https://github.com/legesher/legesher)
|
| 104 |
|
| 105 |
## License
|
| 106 |
|
| 107 |
+
Apache 2.0 — all contributions are released under this license.
|