|
--- |
|
license: mit |
|
task_categories: |
|
- question-answering |
|
language: |
|
- en |
|
configs: |
|
- config_name: paragraphs |
|
data_files: |
|
- split: gutenqa_paragraphs |
|
path: GutenQA_paragraphs.parquet |
|
--- |
|
# 📚 GutenQA-Paragraphs |
|
GutenQA-Paragraphs consists on the same 100 Public Domain Narrative Books used in [GutenQA](https://huggingface.co/datasets/LumberChunker/GutenQA). In this version, passages are extracted at the paragraph level.<br> |
|
The [GutenQA](https://huggingface.co/datasets/LumberChunker/GutenQA) dataset, as available, is the result of applying the text segmentation method [LumberChunker](https://github.com/joaodsmarques/LumberChunker) to the GutenQA-Paragraphs.<br> |
|
|
|
The dataset is organized into the following columns: |
|
|
|
- `Book Name`: The title of the book from which the passage is extracted. |
|
- `Book ID`: A unique integer identifier assigned to each book. |
|
- `Chunk ID`: An integer identifier for each chunk of the book. Chunks are listed in the sequence they appear in the book. |
|
- `Chapter`: The name(s) of the chapter(s) from which the chunk is derived. If LumberChunker merged paragraphs from multiple chapters, the names of all relevant chapters are included. |
|
- `Chunk`: Each row contains a book passage which, in this dataset, is a single paragraph. |
|
|
|
<br> |
|
|
|
|
|
# 🤝 Compatibility |
|
GutenQA-Paragraph serves as the foundational data to apply different segmentation methods, such as:<br> |
|
- [Lumberchunker](https://github.com/joaodsmarques/LumberChunker) |
|
- [Recursive Character Splitting](https://python.langchain.com/v0.1/docs/modules/data_connection/document_transformers/recursive_text_splitter/) |
|
- [Semantic Chunking](https://github.com/FullStackRetrieval-com/RetrievalTutorials/tree/main/tutorials/LevelsOfTextSplitting) |
|
- [Propositions](https://arxiv.org/abs/2312.06648) |
|
|
|
|
|
|
|
|
|
|
|
# 🔧 Loading the Dataset. |
|
```python |
|
import pandas as pd |
|
dataset = pd.read_parquet("hf://datasets/LumberChunker/GutenQA_Paragraphs/GutenQA_paragraphs.parquet") |
|
|
|
# Filter the DataFrame to show only rows with the specified book name |
|
single_book_chunks = dataset[dataset['Book Name'] == 'A_Christmas_Carol_-_Charles_Dickens'].reset_index(drop=True) |
|
``` |
|
|
|
<br> |
|
|
|
# 💬 Citation |
|
|
|
```bibtex |
|
@misc{duarte2024lumberchunker, |
|
title={LumberChunker: Long-Form Narrative Document Segmentation}, |
|
author={André V. Duarte and João Marques and Miguel Graça and Miguel Freire and Lei Li and Arlindo L. Oliveira}, |
|
year={2024}, |
|
eprint={2406.17526}, |
|
archivePrefix={arXiv}, |
|
primaryClass={cs.CL}, |
|
url={https://arxiv.org/abs/2406.17526}, |
|
} |
|
``` |
|
|
|
<details> |
|
<summary> 📖 Book References</summary> |
|
[1] Twain, M. (2004). Adventures of Huckleberry Finn. Project Gutenberg.<br> |
|
[2] Carroll, L. (2008). Alice's Adventures in Wonderland. Project Gutenberg.<br> |
|
[3] Tolstoy, L. (1998). Anna Karenina. Project Gutenberg.<br> |
|
[4] Montgomery, L. (2008). Anne of Green Gables. Project Gutenberg.<br> |
|
[5] Verne, J. (1994). Around the World in Eighty Days. Project Gutenberg.<br> |
|
[6] Dickens, C. (2004). A Christmas Carol. Project Gutenberg.<br> |
|
[7] Twain, M. (2004). A Connecticut Yankee in King Arthur's Court. Project Gutenberg.<br> |
|
[8] Hudson, W. (2005). A Crystal Age. Project Gutenberg.<br> |
|
[9] Scott, S. (2006). A Legend Of Montrose. Project Gutenberg.<br> |
|
[10] Joyce, J. (2003). A Portrait of the Artist as a Young Man. Project Gutenberg.<br> |
|
[11] Forster, E. (2001). A Room with a View. Project Gutenberg.<br> |
|
[12] Doyle, A. (1995). A Study in Scarlet. Project Gutenberg.<br> |
|
[13] Dickens, C. (1994). A Tale of Two Cities. Project Gutenberg.<br> |
|
[14] Nietzsche, F. (2003). Beyond Good and Evil. Project Gutenberg.<br> |
|
[15] Le Fanu, J. (2003). Carmilla. Project Gutenberg.<br> |
|
[16] Gaskell, E. (1996). Cranford. Project Gutenberg.<br> |
|
[17] Dostoyevsky, F. (2006). Crime and Punishment. Project Gutenberg.<br> |
|
[18] Garis, H. (2005). Daddy takes us to the Garden. Project Gutenberg.<br> |
|
[19] Dickens, C. (1996). David Copperfield. Project Gutenberg.<br> |
|
[20] Stoker, B. (1995). Dracula. Project Gutenberg.<br> |
|
[21] Joyce, J. (2001). Dubliners. Project Gutenberg.<br> |
|
[22] Austen, J. (1994). Emma. Project Gutenberg.<br> |
|
[23] Shelley, M. (1993). Frankenstein Or The Modern Prometheus. Project Gutenberg.<br> |
|
[24] Dickens, C. (1998). Great Expectations. Project Gutenberg.<br> |
|
[25] Brothers, G. (2001). Grimms' Fairy Tales. Project Gutenberg.<br> |
|
[26] Swift, J. (1997). Gulliver's Travels into Several Remote Nations of the World. Project Gutenberg.<br> |
|
[27] Conrad, J. (2006). Heart of Darkness. Project Gutenberg.<br> |
|
[28] Jacobs, H. (2004). Incidents in the Life of a Slave Girl. Project Gutenberg.<br> |
|
[29] Bronte, C. (1998). Jane Eyre. Project Gutenberg.<br> |
|
[30] Hugo, V. (2008). Les Miserables. Project Gutenberg.<br> |
|
[31] Alcott, L. (1996). Little Women. Project Gutenberg.<br> |
|
[32] Dumas, A. (2001). Louise de la Valliere. Project Gutenberg.<br> |
|
[33] Flaubert, G. (2006). Madame Bovary. Project Gutenberg.<br> |
|
[34] Aurelius, E. (2001). Meditations. Project Gutenberg.<br> |
|
[35] Eliot, G. (1994). Middlemarch. Project Gutenberg.<br> |
|
[36] Melville, H. (2001). Moby Dick Or The Whale. Project Gutenberg.<br> |
|
[37] Wagner, R. (2004). My Life. Project Gutenberg.<br> |
|
[38] Douglass, F. (2006). Narrative of the Life of Frederick Douglass, an American Slave. Project Gutenberg.<br> |
|
[39] Dickens, C. (1996). Oliver Twist. Project Gutenberg.<br> |
|
[40] Austen, J. (1994). Persuasion. Project Gutenberg.<br> |
|
[41] Barrie, J. (2008). Peter Pan. Project Gutenberg.<br> |
|
[42] Austen, J. (1998). Pride and Prejudice. Project Gutenberg.<br> |
|
[43] Brand, M. (2006). Riders Of The Silences. Project Gutenberg.<br> |
|
[44] Locke, J. (2005). Second Treatise of Government. Project Gutenberg.<br> |
|
[45] Austen, J. (1994). Sense and Sensibility. Project Gutenberg.<br> |
|
[46] Dumas, A. (2001). Ten Years Later. Project Gutenberg.<br> |
|
[47] Smollett, T. (2004). The Adventures of Ferdinand Count Fathom. Project Gutenberg.<br> |
|
[48] Smollett, T. (2003). The Adventures of Roderick Random. Project Gutenberg.<br> |
|
[49] Doyle, A. (1999). The Adventures of Sherlock Holmes. Project Gutenberg.<br> |
|
[50] Twain, M. (2004). The Adventures of Tom Sawyer. Project Gutenberg.<br> |
|
[51] Dumas, A. (1997). The Black Tulip. Project Gutenberg.<br> |
|
[52] Montgomery, L. (2022). The Blue Castle. Project Gutenberg.<br> |
|
[53] Couch, A. (2006). The Blue Pavilions. Project Gutenberg.<br> |
|
[54] Dostoyevsky, F. (2009). The Brothers Karamazov. Project Gutenberg.<br> |
|
[55] London, J. (2008). The Call of the Wild. Project Gutenberg.<br> |
|
[56] Augustine, B. (2002). The Confessions of St. Augustine. Project Gutenberg.<br> |
|
[57] Dumas, A. (1998). The Count of Monte Cristo. Project Gutenberg.<br> |
|
[58] Arnim, E. (2005). The Enchanted April. Project Gutenberg.<br> |
|
[59] Leblanc, M. (2004). The Extraordinary Adventures of Arsene Lupin. Project Gutenberg.<br> |
|
[60] Dostoyevsky, F. (2000). The Gambler. Project Gutenberg.<br> |
|
[61] Fitzgerald, F. (2021). The Great Gatsby. Project Gutenberg.<br> |
|
[62] Doyle, A. (2001). The Hound of the Baskervilles. Project Gutenberg.<br> |
|
[63] Chambers, R. (2005). The King in Yellow. Project Gutenberg.<br> |
|
[64] Defoe, D. (1996). The Life and Adventures of Robinson Crusoe. Project Gutenberg.<br> |
|
[65] Dumas, A. (2001). The Man in the Iron Mask. Project Gutenberg.<br> |
|
[66] Christie, A. (2022). The Murder of Roger Ackroyd. Project Gutenberg.<br> |
|
[67] Christie, A. (2019). The Murder on the Links. Project Gutenberg.<br> |
|
[68] Homer, H. (1999). The Odyssey. Project Gutenberg.<br> |
|
[69] Wilde, O. (1994). The Picture of Dorian Gray. Project Gutenberg.<br> |
|
[70] Machiavelli, N. (2006). The Prince. Project Gutenberg.<br> |
|
[71] Twain, M. (2004). The Prince and the Pauper. Project Gutenberg.<br> |
|
[72] Russell, B. (2004). The Problems of Philosophy. Project Gutenberg.<br> |
|
[73] Gibran, K. (2019). The Prophet. Project Gutenberg.<br> |
|
[74] Rizal, J. (2004). The Reign of Greed. Project Gutenberg.<br> |
|
[75] Plato, P. (1998). The Republic. Project Gutenberg.<br> |
|
[76] Anonymous, A. (2009). The Romance of Lust. Project Gutenberg.<br> |
|
[77] Hawthorne, N. (2008). The Scarlet Letter. Project Gutenberg.<br> |
|
[78] Doyle, A. (2000). The Sign of the Four. Project Gutenberg.<br> |
|
[79] Bois, W. (1996). The Souls of Black Folk. Project Gutenberg.<br> |
|
[80] Stevenson, R. (2008). The Strange Case of Dr. Jekyll and Mr. Hyde. Project Gutenberg.<br> |
|
[81] Hemingway, E. (2022). The Sun Also Rises. Project Gutenberg.<br> |
|
[82] Dumas, A. (1998). The Three Musketeers. Project Gutenberg.<br> |
|
[83] Wells, H. (2004). The Time Machine. Project Gutenberg.<br> |
|
[84] Kafka, F. (2005). The Trial. Project Gutenberg.<br> |
|
[85] James, H. (1995). The Turn of the Screw. Project Gutenberg.<br> |
|
[86] Dumas, A. (2001). The Vicomte de Bragelonne. Project Gutenberg.<br> |
|
[87] Wells, H. (2004). The War of the Worlds. Project Gutenberg.<br> |
|
[88] Baum, L. (1993). The Wonderful Wizard of Oz. Project Gutenberg.<br> |
|
[89] Nietzsche, F. (1999). Thus Spake Zarathustra. Project Gutenberg.<br> |
|
[90] Stevenson, R. (2006). Treasure Island. Project Gutenberg.<br> |
|
[91] Verne, J. (1994). Twenty Thousand Leagues under the Sea. Project Gutenberg.<br> |
|
[92] Dumas, A. (1998). Twenty Years After. Project Gutenberg.<br> |
|
[93] Joyce, J. (2003). Ulysses. Project Gutenberg.<br> |
|
[94] Stowe, H. (2006). Uncle Tom’s Cabin or Life among the Lowly. Project Gutenberg.<br> |
|
[95] Thoreau, H. (1995). Walden, and On The Duty Of Civil Disobedience. Project Gutenberg.<br> |
|
[96] Tolstoy, L. (2001). War and Peace. Project Gutenberg.<br> |
|
[97] Brand, M. (2006). Way Of The Lawless. Project Gutenberg.<br> |
|
[98] Dostoyevsky, F. (2011). White Nights and Other Stories. Project Gutenberg.<br> |
|
[99] Milne, A. (2022). Winnie the Pooh. Project Gutenberg.<br> |
|
[100] Bronte, E. (1996). Wuthering Heights. Project Gutenberg.<br> |
|
</details> |