Datasets:
image
imagewidth (px) 1.02k
1.02k
| text
stringlengths 2
132
|
---|---|
bamboo rice basket |
|
string of many pearls |
|
present, existing, actual |
|
flute reed |
|
polish, brilliant white luster of a gem, artful smile |
|
dying young |
|
laugh, chew, eat |
|
violent, thunder, lightening |
|
clear-toned cicada |
|
together, mutual, subordinate official |
|
cloth wrapper |
|
lice, vermin |
|
be complete, uniform, all present |
|
seize, spring upon, strike |
|
tie into a bundle, coil around |
|
jewelled utensil |
|
grandchild, descendants |
|
hide, shelter, shield |
|
bride, marriage |
|
blossom, bloom |
|
fly |
|
good luck, joy, congratulations |
|
unlucky, misfortune, bad luck, disaster |
|
display, offer, present, send, exhibit |
|
sleep |
|
uncut gem, unpolished gem |
|
thorny bamboo, bamboo fence |
|
paste, glue, sizing |
|
chic, style, purity, essence, pith, cream, elite, choice |
|
drown, sink, hide, fall into, disappear, die |
|
leek |
|
meeting, tryst, date, rendezvous |
|
dispatch, despatch, send, give, donate, do, undertake |
|
nod approval |
|
near, early, akin, tantamount |
|
hibernation of insects |
|
mutter, grumble, murmur |
|
bandits, thieves, enemy, invade |
|
inquire, fathom, look for |
|
swallow, absorb, annex, engulf |
|
deliver, reach, arrive, report, notify, forward |
|
excel in, surpass, pull out, select |
|
bamboo basket |
|
lion |
|
laugh |
|
hear, ask, listen |
|
broad road |
|
fermentation, brewing |
|
highness |
|
knife, sword |
|
mortar |
|
surname |
|
footprints, traces, tracks |
|
gall bladder, bravery, courage |
|
lice, vermin |
|
for the first time, not until |
|
turn, number in a series |
|
clap |
|
gigantic, big, large, great |
|
surplus, besides |
|
rinse, wash, gargle |
|
meet, see |
|
smear with blood |
|
east-west path between paddies, road |
|
apple |
|
failure, defeat, reversal |
|
hurl |
|
juvenile, child |
|
wool cloth |
|
town, block |
|
consume, eat, drink, smoke |
|
thunder, lightning bolt |
|
extend, give, cast |
|
voracious, gluttonous |
|
soon after, presently, almost, all but, no more than, after all |
|
skirt |
|
rot, decay, sour |
|
T'ang, China, foreign |
|
jealous, envy |
|
paper, label, letter, composition |
|
before, companion, same kind |
|
salary in rice |
|
dry up, mature |
|
sword, potter's clay, to gather |
|
decameron, ten-day period |
|
dip, soak, immerse, stop, linger |
|
woodcutting, lumberjack |
|
severance, decline, refuse, apologize, warn, dismiss, prohibit, decision, judgement, cutting |
|
brittle, fragile, easy to beat, sentimental, susceptible |
|
diaper |
|
soft |
|
gnat, sand fly |
|
make a deal, selling, dealing in, merchant |
|
lips |
|
type of bird, vine |
|
name of a Chinese river |
|
aid, help, assist |
|
horizon, shore, limit, bound |
|
the autumn sky |
|
infancy |
End of preview. Expand
in Dataset Viewer.
KanjiVG PNG images with textual descriptions
This dataset is an adaptation of KanjiVG by Ulrich Apel. The original SVG files have been converted to 1024x1024 PNG images and enriched with Kanji descriptions of their meaning.
Usage
>>> import datasets
>>> data = datasets.load_dataset("davidstap/kanji_definitions")
>>> data
DatasetDict({
train: Dataset({
features: ['image', 'text'],
num_rows: 6315
})
})
>>> data['train']
Dataset({
features: ['image', 'text'],
num_rows: 6315
})
>>> data['train']['text'][0]
'bamboo rice basket'
>>> data['train']['image'][0]
<PIL.PngImagePlugin.PngImageFile image mode=RGBA size=1024x1024 at 0x7F1B037E5600>
Note that some kanji characters have multiple meanings, which are separated by commas. You can expand entries to include the same image for each meaning by doing:
>>> new_data = (
... datasets.Dataset.from_dict(
... {
... 'image': [img for img, txt in zip(data['train']['image'], data['train']['text']) for _ in txt.split(',')],
... 'text': [desc.strip() for txt in data['train']['text'] for desc in txt.split(',')]
... }
... )
... )
>>> len(new_data)
16168
Modifications from Original
- Converted SVG files to 1024x1024 PNG format
- Added descriptive text for each Kanji character
- Removed numbering from SVG renders
- Original vector graphics available at: https://github.com/KanjiVG/kanjivg
Attribution
- Original work: KanjiVG by Ulrich Apel
- Original repository: https://github.com/KanjiVG/kanjivg
- Adaptation by: David Stap
- Downloads last month
- 26