Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -24,8 +24,14 @@ Each word entry contains:
|
|
| 24 |
- `reading` (string): The reading in hiragana/katakana
|
| 25 |
- `meaning` (string): English translation/meaning
|
| 26 |
|
| 27 |
-
Optional fields (may be added in future updates):
|
| 28 |
- `jlpt`: JLPT level (N5, N4, N3, N2, N1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
- `pos`: Part of speech (noun, verb, adjective, etc.)
|
| 30 |
- `tags`: List of tags/categories
|
| 31 |
- `frequency_rank`: Frequency ranking
|
|
@@ -38,7 +44,11 @@ Optional fields (may be added in future updates):
|
|
| 38 |
```python
|
| 39 |
from datasets import load_dataset
|
| 40 |
|
|
|
|
| 41 |
dataset = load_dataset("username/anki-words", split="train")
|
|
|
|
|
|
|
|
|
|
| 42 |
```
|
| 43 |
|
| 44 |
### View in dataset viewer
|
|
|
|
| 24 |
- `reading` (string): The reading in hiragana/katakana
|
| 25 |
- `meaning` (string): English translation/meaning
|
| 26 |
|
|
|
|
| 27 |
- `jlpt`: JLPT level (N5, N4, N3, N2, N1)
|
| 28 |
+
- N5: Basic level (easiest)
|
| 29 |
+
- N4: Elementary level
|
| 30 |
+
- N3: Intermediate level
|
| 31 |
+
- N2: Pre-advanced level
|
| 32 |
+
- N1: Advanced level (hardest)
|
| 33 |
+
|
| 34 |
+
Optional fields (may be added in future updates):
|
| 35 |
- `pos`: Part of speech (noun, verb, adjective, etc.)
|
| 36 |
- `tags`: List of tags/categories
|
| 37 |
- `frequency_rank`: Frequency ranking
|
|
|
|
| 44 |
```python
|
| 45 |
from datasets import load_dataset
|
| 46 |
|
| 47 |
+
# Load all words
|
| 48 |
dataset = load_dataset("username/anki-words", split="train")
|
| 49 |
+
|
| 50 |
+
# Filter by JLPT level (if available)
|
| 51 |
+
n5_words = dataset.filter(lambda x: x.get("jlpt") == "N5")
|
| 52 |
```
|
| 53 |
|
| 54 |
### View in dataset viewer
|