Dataset Viewer
Auto-converted to Parquet Duplicate
genre
string
book_title
string
fpath
string
book_json
string
author.first_name
string
author.last_name
string
author.middle_name
string
langs.lang
string
doc_info.nickname
string
doc_info.email
string
doc_info.date
string
doc_info.doc_id
string
doc_info.version
string
doc_info.program_used
string
langs.src_lang
string
doc_info.src_url
string
pub_info.book_name
string
pub_info.publisher
string
pub_info.city
string
pub_info.year
string
title_info.annotation
string
pub_info.isbn
string
pub_info.sequence
string
title_info.keywords
string
nonf_publicism
Орест Сомов и его проза
./librusec_xml_normalized/fb2-030560-060423/42480.xml
[{"body_title": ["Петрунина Н Н", "Орест Сомов и его проза"], "sections": [{"data": {"pars": ["Н.Петрунина", "Орест Сомов и его проза", "Литературная судьба Ореста Сомова удивительна. После полутора десятилетий живого участия в самых разнообразных журналах и альманахах своего времени - в незаметной издательской работе ...
Н
Петрунина
Н
ru
rusec
lib_at_rus.ec
2007-06-12
Tue Jun 12 03:32:14 2007
1.0
LibRusEc kit
null
null
null
null
null
null
null
null
null
null
nonf_publicism
Романы И И Лажечникова
./librusec_xml_normalized/fb2-030560-060423/42481.xml
"[{\"body_title\": [\"Петрунина Н Н\", \"Романы И И Лажечникова\"], \"(...TRUNCATED)
Н
Петрунина
Н
ru
rusec
lib_at_rus.ec
2007-06-12
Tue Jun 12 03:29:31 2007
1.0
LibRusEc kit
null
null
null
null
null
null
null
null
null
null
children
Барби-волшебница
./librusec_xml_normalized/fb2-030560-060423/42482.xml
"[{\"body_title\": [\"Петрушевская Людмила\", \"Барби-волшебница\"(...TRUNCATED)
Людмила
Петрушевская
null
ru
rusec
lib_at_rus.ec
2013-06-10
Mon Jun 10 21:24:29 2013
1.0
LibRusEc kit
null
null
null
null
null
null
null
null
null
null
children
Барби-волшебница и лес
./librusec_xml_normalized/fb2-030560-060423/42483.xml
"[{\"body_title\": [\"Петрушевская Людмила\", \"Барби-волшебница (...TRUNCATED)
Людмила
Петрушевская
null
ru
rusec
lib_at_rus.ec
2013-06-10
Mon Jun 10 21:24:29 2013
1.0
LibRusEc kit
null
null
null
null
null
null
null
null
null
null
children
Барби и кукольный дом
./librusec_xml_normalized/fb2-030560-060423/42484.xml
"[{\"body_title\": [\"Петрушевская Людмила\", \"Барби и кукольный (...TRUNCATED)
Людмила
Петрушевская
null
ru
rusec
lib_at_rus.ec
2013-06-10
Mon Jun 10 21:24:29 2013
1.0
LibRusEc kit
null
null
null
null
null
null
null
null
null
null
children
Барби улыбается
./librusec_xml_normalized/fb2-030560-060423/42485.xml
"[{\"body_title\": [\"Петрушевская Людмила\", \"Барби улыбается\"],(...TRUNCATED)
Людмила
Петрушевская
null
ru
rusec
lib_at_rus.ec
2013-06-10
Mon Jun 10 21:24:29 2013
1.0
LibRusEc kit
null
null
null
null
null
null
null
null
null
null
children
Белые чайники
./librusec_xml_normalized/fb2-030560-060423/42486.xml
"[{\"body_title\": [\"Петрушевская Людмила\", \"Белые чайники\"], \"s(...TRUNCATED)
Людмила
Петрушевская
null
ru
rusec
lib_at_rus.ec
2013-06-10
Mon Jun 10 21:24:29 2013
1.0
LibRusEc kit
null
null
null
null
null
null
null
null
null
null
children
Будильник
./librusec_xml_normalized/fb2-030560-060423/42487.xml
"[{\"body_title\": [\"Петрушевская Людмила\", \"Будильник\"], \"sections(...TRUNCATED)
Людмила
Петрушевская
null
ru
rusec
lib_at_rus.ec
2013-06-10
Mon Jun 10 21:24:29 2013
1.0
LibRusEc kit
null
null
null
null
null
null
null
null
null
null
children
Бурлак
./librusec_xml_normalized/fb2-030560-060423/42488.xml
"[{\"body_title\": [\"Петрушевская Людмила\", \"Бурлак\"], \"sections\": [{(...TRUNCATED)
Людмила
Петрушевская
null
ru
rusec
lib_at_rus.ec
2013-06-10
Mon Jun 10 21:24:29 2013
1.0
LibRusEc kit
null
null
null
null
null
null
null
null
null
null
prose_rus_classic
Царь природы
./librusec_xml_normalized/fb2-030560-060423/42489.xml
"[{\"body_title\": [\"Петрушевская Людмила\", \"Царь природы\"], \"sec(...TRUNCATED)
Людмила
Петрушевская
null
ru
rusec
lib_at_rus.ec
2013-06-11
Tue Jun 11 20:24:21 2013
1.0
LibRusEc kit
ru
null
null
null
null
null
null
null
null
null
End of preview. Expand in Data Studio

Librusec

Books mostly in Russian from Librusec library. With original metadata.

DatasetDict({
    train: Dataset({
        features: ['genre', 'book_title', 'fpath', 'book_json', 'author.first_name', 'author.last_name', 'author.middle_name', 'langs.lang', 'doc_info.nickname', 'doc_info.email', 'doc_info.date', 'doc_info.doc_id', 'doc_info.version', 'doc_info.program_used', 'langs.src_lang', 'doc_info.src_url', 'pub_info.book_name', 'pub_info.publisher', 'pub_info.city', 'pub_info.year', 'title_info.annotation', 'pub_info.isbn', 'pub_info.sequence', 'title_info.keywords'],
        num_rows: 493378
    })
})

JSON

Books are in JSON format:

[
    {
        "body_title": [
            "Жюльетта Бенцони",
            "Манчжурская принцесса"
        ],
        "epigraph": {
            "author": "Лао Цзы",
            "text": [
                "«Нельзя идтии любоваться звездами, когда в твоем ботинке камень»."
            ]
        },
        "sections": [
            {
                "data": {
                    "pars": [
                        "Июль 1918",
                        "Вокзал в Шалон-сюр-Марн...",
                        "Вдоль платформы длинной лентой вытянулись двадцать три вагона санитарного поезда, который вот-вот должен был тронуться. Занимавшиеся погрузкой раненых санитары оказывали им последние услуги, прежде чем передать на попечение медицинского персонала поезда, где позаботятся о них до Лиона.",
                        "Весь день стояла жара, все вокруг было налито тяжестью. К пяти часам вечера разразившаяся гроза принесла долгожданную прохладу, с облегчением воспринятую всеми.

Format JSON as you need

Example:

def format_book(doc):
    res = ""
    for body in doc:
        if 'body_title' in body:
            title = '\n\n'.join(body['body_title'])
            res += title
            res += '\n\n'
        
        if 'sections' in body:
            for section in body['sections']:
                if 'title' in section:
                    sec_title = '\n\n'.join(section['title'])
                    res += sec_title
                    res += '\n\n'
    
                if 'data' in section and 'pars' in section['data']:
                    for par in section['data']['pars']:
                        res += f'{par}\n'
                else:
                    # print('no pars', section)
                    pass

    return res
Downloads last month
31