Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    TypeError
Message:      Couldn't cast array of type
struct<hemistich: struct<verse0: string, verse1: string>>
to
{'hemistich': {'verse0': Value(dtype='string', id=None), 'verse1': Value(dtype='string', id=None)}, 'verse': {'text': Value(dtype='string', id=None)}}
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2302, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2261, in cast_table_to_schema
                  arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2261, in <listcomp>
                  arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1802, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1802, in <listcomp>
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2025, in cast_array_to_feature
                  casted_array_values = _c(array.values, feature[0])
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1804, in wrapper
                  return func(array, *args, **kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2122, in cast_array_to_feature
                  raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}")
              TypeError: Couldn't cast array of type
              struct<hemistich: struct<verse0: string, verse1: string>>
              to
              {'hemistich': {'verse0': Value(dtype='string', id=None), 'verse1': Value(dtype='string', id=None)}, 'verse': {'text': Value(dtype='string', id=None)}}
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1529, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1154, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2038, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

poet
string
title
string
content
list
آذر بیگدلی
شمارهٔ ۱ - و له فی القصاید
[ { "hemistich": { "verse0": "دریغا که با خود ندیدم مصاحب", "verse1": "رفیقی موافق، انیسی مناسب" }, "verse": null }, { "hemistich": { "verse0": "رفیقی که پرسد غمم در مکاره", "verse1": "انیسی که جوید دلم در مصائب" }, "verse": null }, { "hemistich": { "v...
آذر بیگدلی
شمارهٔ ۲ - در مدح امام امیر المؤمنین علی بن ابطالب علیه السلام
[ { "hemistich": { "verse0": "ای سوده بر در تو جبین مه، سر آفتاب؛", "verse1": "ناز تو هم بماه رسد هم بر آفتاب" }, "verse": null }, { "hemistich": { "verse0": "در صحن باغ سروی و، برطرف بام ماه؛", "verse1": "در انجمن چراغی و، در منظر آفتاب" }, "verse": null }, { ...
آذر بیگدلی
شمارهٔ ۳ - در مدح بطلمیوس زمان میرزا محمد نصیر طبیب
[ { "hemistich": { "verse0": "ای داده نخل قد تو بر، ماه و آفتاب", "verse1": "و افگند سایه خد تو بر ماه و آفتاب" }, "verse": null }, { "hemistich": { "verse0": "بویی چو بوی تو، نه مگر مشک و غالیه؛", "verse1": "رویی چو روی تو، نه، مگر ماه و آفتاب!" }, "verse": null ...
آذر بیگدلی
شمارهٔ ۴ - هو القصیده در مدح محمد زمان خان بیگدلی
[ { "hemistich": { "verse0": "گفتا سحر غلام که: زین کرده یار اسب", "verse1": "اینک ز شهر راند برون شهریار اسب" }, "verse": null }, { "hemistich": { "verse0": "افتادم از پیش، که عنان گیرمش ز ناز", "verse1": "نگذارد افگند بسر من گذار اسب" }, "verse": null }, { ...
آذر بیگدلی
شمارهٔ ۵ - و له قصیده در مدح میرزا عبدالوهاب
[ { "hemistich": { "verse0": "دگر صبح است و بلبل نغمه خوان است", "verse1": "ز حسن گل هزارش داستان است" }, "verse": null }, { "hemistich": { "verse0": "زمین، از رنگ لاله، لعل پوش است؛", "verse1": "هوا، از بوی گل عنبر فشان است" }, "verse": null }, { "hemistich...
آذر بیگدلی
شمارهٔ ۶ - هو القصیده در مدح علی بن ابی طالب علیه السلام
[ { "hemistich": { "verse0": "از دست من کشید گه عهد یار دست", "verse1": "بر هیچ کس نیافت چو من روزگار دست" }, "verse": null }, { "hemistich": { "verse0": "گفتم: بیار دست، که بندیم عهد نو", "verse1": "بد عهد بین، نداد بدستم ز عار دست" }, "verse": null }, { "h...
آذر بیگدلی
شمارهٔ ۷ - در شمه‌ای از حال خود و تأسف خرابی خانه و منقبت کاظمین علیهما السلام فرماید
[ { "hemistich": { "verse0": "منم که کرد فلک کشت زندگیم حصاد", "verse1": "منم که داد زمین خاک هستیم بر باد" }, "verse": null }, { "hemistich": { "verse0": "مرا پدر بود آن مادر، این که می شنود", "verse1": "اگر از آن کنم افغان، وگر ازین فریاد؟!" }, "verse": null }, ...
آذر بیگدلی
شمارهٔ ۸
[ { "hemistich": { "verse0": "نخست آینه‌ای بهر دیدن خود خواست", "verse1": "قرار کار، به خلق سرای امکان داد" }, "verse": null }, { "hemistich": { "verse0": "به عقل آیه والایی دو عالم خواند", "verse1": "به عرش، پایهٔ بالایی نه ایوان داد" }, "verse": null }, { ...
آذر بیگدلی
شمارهٔ ۸
[ { "hemistich": { "verse0": "دم مردن شدن دمساز چون من ناتوانی را", "verse1": "مرا گر زنده کردی، کشتی از رشکم جهانی را" }, "verse": null }, { "hemistich": { "verse0": "درین گلشن بود جای من ای گل، بلبلم، بلبل؛", "verse1": "نه جغدم کو بهر ویرانه خوش کرد آشیانی را!" }, ...
آذر بیگدلی
شمارهٔ ۸
[ { "hemistich": { "verse0": "دور از تو شبی در اثر زاری‌ها", "verse1": "دیدم ز تو در خواب بسی یاری‌ها" }, "verse": null }, { "hemistich": { "verse0": "زان شب دگرم خواب نه، سبحان الله", "verse1": "یک خواب وز پی این همه بیداری‌ها؟!" }, "verse": null } ]
آذر بیگدلی
شمارهٔ ۸
[ { "hemistich": { "verse0": "یکی روز در ساحت گلشنی", "verse1": "گرفته سرچشمه ی روشنی" }, "verse": null }, { "hemistich": { "verse0": "من و یکدو تن همدم نیکبخت", "verse1": "نشستیم در سایه ی یک درخت" }, "verse": null }, { "hemistich": { "verse0": "ز یکد...
End of preview.

Persian Poetry Dataset

Dataset Description

Overview

This dataset contains a rich collection of Persian poems along with metadata about the poets and the verses. The data spans various poets and their poems, and includes the verses with associated information about their position within each poem.

Data Collection

  • Data Collection Source: The data is sourced from the Ganjoor project. The specific database file can be found in the releases section of their GitHub repository.
  • Time Period: Oct-12-2023
  • Collection Methods: The data was collected by downloading the raw database file from the Ganjoor project's GitHub repository.

Data Structure

The dataset is structured into multiple tables, notably poem, poet, and verse tables which contain information about the poems, poets, and verses respectively. The tables are linked through various ID fields that allow the data to be connected and queried together.

  • Poem Table:

    • id: The unique identifier of a poem.
    • cat_id: A category identifier linking to poet information.
    • title: The title of the poem.
    • url: A URL associated with the poem.
  • Poet Table:

    • id: The unique identifier of a poet.
    • name: The name of the poet.
    • cat_id: A category identifier.
    • description: A textual description or biography of the poet.
  • Verse Table:

    • poem_id: Identifier linking the verse to a particular poem.
    • vorder: Order of the verse within the poem.
    • position: Position of the verse, used to determine if two verses form a hemistich.
    • text: The text of the verse.

Data Example

{
  "poet": "Sample Poet",
  "title": "Sample Poem Title",
  "content": [
    {
      "hemistich": {
        "verse0": "First part of a hemistich",
        "verse1": "Second part of a hemistich"
      }
    },
    {
      "verse": {"text": "A standalone verse"}
    }
  ]
}

Dataset Usage

Use Cases

This dataset can be utilized for various Natural Language Processing and analysis tasks related to Persian poetry, such as:

  • Poem generation
  • Poet identification
  • Style analysis

Challenges & Limitations

  • The dataset does not contain long verses that are over 100 characters.
  • Some poems may contain verses that form hemistichs, which are represented with specific structure in the dataset.

License

GPL-2 (GNU General Public License) inherited from the original source

Additional Information

Citation

Persian Poetry Dataset. Collected by Kakooch from the Ganjoor Project. Available at: https://huggingface.co/datasets/persian_poetry

Dataset Link

Download the dataset from Hugging Face

Contact

Email: kakooch@gmail.com | GitHub: kakooch


This README was generated by Kakooch.

Downloads last month
20