--- license: cc-by-4.0 task_categories: - text-generation - text-classification language: - ja size_categories: - 10K>> from datasets import load_dataset >>> ds = load_dataset('globis-university/aozorabunko-clean') >>> ds DatasetDict({ train: Dataset({ features: ['text', 'footnote', 'meta'], num_rows: 16951 }) }) >>> ds = ds.filter(lambda row: row['meta']['文字遣い種別'] == '新字新仮名') # only modern Japanese >>> ds DatasetDict({ train: Dataset({ features: ['text', 'footnote', 'meta'], num_rows: 10246 }) }) >>> book = ds['train'][0] # one of the works >>> book['meta']['作品名'] 'ウェストミンスター寺院' >>> text = book['text'] # main content >>> len(text) 10639 >>> print(text[:100]) 深いおどろきにうたれて、 名高いウェストミンスターに 真鍮や石の記念碑となって すべての王侯貴族が集まっているのをみれば、 今はさげすみも、ほこりも、見栄もない。 善にかえった貴人の姿、 華美と俗世の ``` # License CC BY 4.0