Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -16,4 +16,51 @@ configs:
|
|
| 16 |
data_files:
|
| 17 |
- split: train
|
| 18 |
path: data/train-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
data_files:
|
| 17 |
- split: train
|
| 18 |
path: data/train-*
|
| 19 |
+
license: cc-by-sa-3.0
|
| 20 |
+
task_categories:
|
| 21 |
+
- text-to-image
|
| 22 |
+
language:
|
| 23 |
+
- en
|
| 24 |
+
- ja
|
| 25 |
+
tags:
|
| 26 |
+
- kanji
|
| 27 |
+
pretty_name: Kanji images with textual descriptions
|
| 28 |
+
size_categories:
|
| 29 |
+
- 1K<n<10K
|
| 30 |
---
|
| 31 |
+
|
| 32 |
+
# KanjiVG PNG images with textual descriptions
|
| 33 |
+
This dataset is an adaptation of [KanjiVG](https://github.com/KanjiVG/kanjivg) by Ulrich Apel. The original SVG files have been converted to 1024x1024 PNG images and enriched with Kanji descriptions of their meaning.
|
| 34 |
+
|
| 35 |
+
## Usage
|
| 36 |
+
```python
|
| 37 |
+
>>> from datasets import load_dataset
|
| 38 |
+
>>> data=load_dataset("davidstap/kanji_definitions")
|
| 39 |
+
>>> data
|
| 40 |
+
DatasetDict({
|
| 41 |
+
train: Dataset({
|
| 42 |
+
features: ['image', 'text'],
|
| 43 |
+
num_rows: 6315
|
| 44 |
+
})
|
| 45 |
+
})
|
| 46 |
+
>>> data['train']
|
| 47 |
+
Dataset({
|
| 48 |
+
features: ['image', 'text'],
|
| 49 |
+
num_rows: 6315
|
| 50 |
+
})
|
| 51 |
+
>>> data['train']['text'][0]
|
| 52 |
+
'bamboo rice basket'
|
| 53 |
+
>>> data['train']['image'][0]
|
| 54 |
+
<PIL.PngImagePlugin.PngImageFile image mode=RGBA size=1024x1024 at 0x7F1B037E5600>
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
## Modifications from Original
|
| 58 |
+
- Converted SVG files to 1024x1024 PNG format
|
| 59 |
+
- Added descriptive text for each Kanji character
|
| 60 |
+
- Removed numbering from SVG renders
|
| 61 |
+
- Original vector graphics available at: https://github.com/KanjiVG/kanjivg
|
| 62 |
+
|
| 63 |
+
## Attribution
|
| 64 |
+
- Original work: KanjiVG by Ulrich Apel
|
| 65 |
+
- Original repository: https://github.com/KanjiVG/kanjivg
|
| 66 |
+
- Adaptation by: David Stap
|