shawnrushefsky commited on
Commit
5ed1190
·
verified ·
1 Parent(s): bb01fe6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +44 -84
README.md CHANGED
@@ -14,136 +14,96 @@ size_categories:
14
 
15
  # Fiction 1B
16
 
17
- More than 1B words of narrative fiction sourced from Project Gutenberg, AO3, and Internet Archive
18
 
19
  ## Dataset Details
20
 
21
  ### Dataset Description
22
 
23
- <!-- Provide a longer summary of what this dataset is. -->
 
24
 
 
25
 
 
 
 
 
26
 
27
- - **Curated by:** [More Information Needed]
28
- - **Funded by [optional]:** [More Information Needed]
29
- - **Shared by [optional]:** [More Information Needed]
30
- - **Language(s) (NLP):** [More Information Needed]
31
- - **License:** [More Information Needed]
32
 
33
- ### Dataset Sources [optional]
34
 
35
- <!-- Provide the basic links for the dataset. -->
36
-
37
- - **Repository:** [More Information Needed]
38
- - **Paper [optional]:** [More Information Needed]
39
- - **Demo [optional]:** [More Information Needed]
40
 
41
  ## Uses
42
 
43
- <!-- Address questions around how the dataset is intended to be used. -->
44
 
45
  ### Direct Use
46
 
47
- <!-- This section describes suitable use cases for the dataset. -->
48
-
49
- [More Information Needed]
50
 
51
  ### Out-of-Scope Use
52
 
53
- <!-- This section addresses misuse, malicious use, and uses that the dataset will not work well for. -->
54
-
55
- [More Information Needed]
56
 
57
  ## Dataset Structure
58
 
59
- <!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->
60
-
61
- [More Information Needed]
62
 
63
  ## Dataset Creation
64
 
65
  ### Curation Rationale
66
 
67
- <!-- Motivation for the creation of this dataset. -->
68
-
69
- [More Information Needed]
70
 
71
  ### Source Data
72
 
73
- <!-- This section describes the source data (e.g. news text and headlines, social media posts, translated sentences, ...). -->
74
-
75
  #### Data Collection and Processing
76
 
77
- <!-- This section describes the data collection and processing process such as data selection criteria, filtering and normalization methods, tools and libraries used, etc. -->
78
 
79
- [More Information Needed]
80
-
81
- #### Who are the source data producers?
82
 
83
- <!-- This section describes the people or systems who originally created the data. It should also include self-reported demographic or identity information for the source data creators if this information is available. -->
 
 
 
 
 
 
 
84
 
85
- [More Information Needed]
86
 
87
- ### Annotations [optional]
88
 
89
- <!-- If the dataset contains annotations which are not part of the initial data collection, use this section to describe them. -->
90
 
91
- #### Annotation process
 
92
 
93
- <!-- This section describes the annotation process such as annotation tools used in the process, the amount of data annotated, annotation guidelines provided to the annotators, interannotator statistics, annotation validation, etc. -->
94
-
95
- [More Information Needed]
96
-
97
- #### Who are the annotators?
98
-
99
- <!-- This section describes the people or systems who created the annotations. -->
100
 
101
- [More Information Needed]
102
 
103
  #### Personal and Sensitive Information
104
 
105
- <!-- State whether the dataset contains data that might be considered personal, sensitive, or private (e.g., data that reveals addresses, uniquely identifiable names or aliases, racial or ethnic origins, sexual orientations, religious beliefs, political opinions, financial or health data, etc.). If efforts were made to anonymize the data, describe the anonymization process. -->
106
-
107
- [More Information Needed]
108
 
109
  ## Bias, Risks, and Limitations
110
 
111
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
112
-
113
- [More Information Needed]
114
 
115
  ### Recommendations
116
 
117
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
118
-
119
- Users should be made aware of the risks, biases and limitations of the dataset. More information needed for further recommendations.
120
-
121
- ## Citation [optional]
122
-
123
- <!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
124
-
125
- **BibTeX:**
126
-
127
- [More Information Needed]
128
-
129
- **APA:**
130
-
131
- [More Information Needed]
132
-
133
- ## Glossary [optional]
134
-
135
- <!-- If relevant, include terms and calculations in this section that can help readers understand the dataset or dataset card. -->
136
-
137
- [More Information Needed]
138
-
139
- ## More Information [optional]
140
-
141
- [More Information Needed]
142
-
143
- ## Dataset Card Authors [optional]
144
-
145
- [More Information Needed]
146
-
147
- ## Dataset Card Contact
148
-
149
- [More Information Needed]
 
14
 
15
  # Fiction 1B
16
 
17
+ More than 1B words of narrative fiction sourced from [Project Gutenberg](https://www.gutenberg.org/), [AO3](https://archiveofourown.org/), and [Internet Archive](https://archive.org/).
18
 
19
  ## Dataset Details
20
 
21
  ### Dataset Description
22
 
23
+ This contains the text of roughly 20,000 works of narrative fiction from the above sources.
24
+ From the original full texts, a [genre classifier](https://huggingface.co/classla/xlm-roberta-base-multilingual-text-genre-classifier) was applied at the paragraph level to remove license text, metadata, and other content suspected not to be narrative prose.
25
 
26
+ #### Misc
27
 
28
+ - **Curated by:** Shawn Rushefsky - [🤗](https://huggingface.co/shawnrushefsky) | [github](https://github.com/shawnrushefsky)
29
+ - **Funded by:** [Salad Technologies](https://salad.com)
30
+ - **Language(s) (NLP):** English
31
+ - **License:** MIT
32
 
33
+ ### Dataset Sources
 
 
 
 
34
 
35
+ More information about specific source documents can be found in `doc_index.csv`
36
 
37
+ - Project Gutenberg: 76.4%
38
+ - Archive of our Own (AO3): 22.2%
39
+ - Internet Archive: 1.4%
 
 
40
 
41
  ## Uses
42
 
43
+ The dataset is intended to be used for training language models on the syntactic patterns of narrative fiction.
44
 
45
  ### Direct Use
46
 
47
+ - Fill-Mask training
48
+ - Text Generation training
49
+ - Research
50
 
51
  ### Out-of-Scope Use
52
 
53
+ - Applications outside of fiction
 
 
54
 
55
  ## Dataset Structure
56
 
57
+ `data.zip` contains a CSV file where each row contains the source, a document ID, paragraph index, approximately 500 words of text, and a word count for that section.
 
 
58
 
59
  ## Dataset Creation
60
 
61
  ### Curation Rationale
62
 
63
+ While much of this content is already present in extremely large web-scaped datasets, there is a scarcity of more approachable medium-sized datasets that focus specifically on narrative fiction.
64
+ Datasets such as [FineWeb](https://huggingface.co/datasets/HuggingFaceFW/fineweb) with trillions of tokens are not practical for the average developer to work with.
 
65
 
66
  ### Source Data
67
 
 
 
68
  #### Data Collection and Processing
69
 
70
+ **Project Gutenberg**
71
 
72
+ Project Gutenberg hosts a [catalog CSV](https://www.gutenberg.org/cache/epub/feeds/pg_catalog.csv) that includes metadata such as title, author, and subjects.
73
+ I filtered based on the presence of fiction-related keywords in the Subjects column, and used a python script to bulk download texts.
 
74
 
75
+ ```python
76
+ fiction_keywords = [
77
+ 'fiction', 'novel', 'stories', 'tale', 'adventure',
78
+ 'mystery', 'romance', 'fantasy', 'horror', 'detective',
79
+ 'science fiction', 'historical fiction', 'western',
80
+ 'thriller', 'suspense'
81
+ ]
82
+ ```
83
 
84
+ **AO3**
85
 
86
+ For AO3, I used the [ao3-api](https://pypi.org/project/ao3-api/) python package to gradually paginate through the archive, filtering to English language work with at least 15,000 words but fewer than 500,000, sorted by “Kudos”, a measure of user favor.
87
 
88
+ **Internet Archive**
89
 
90
+ For Internet Archive, I used their search endpoint, and a significant amount of keyword filtering.
91
+ Ultimately I did not get much content from this source due to licensing restrictions.
92
 
93
+ #### Who are the source data producers?
 
 
 
 
 
 
94
 
95
+ Professional and amateur writers of long-form narrative fiction in the English language over the last few hundred years.
96
 
97
  #### Personal and Sensitive Information
98
 
99
+ This dataset contains only works of fiction.
 
 
100
 
101
  ## Bias, Risks, and Limitations
102
 
103
+ The source text comes from a diverse set of english-language narrative fiction spanning hundreds of years of authorship, and may include subject matter and phrasing that offend.
104
+ The age of much of the material from Project Gutenberg is such that white men from before the civil rights movement are vastly disproportionately represented as authors.
105
+ Additionally, contemporary commercial fiction is nearly all but excluded due to licensing restrictions.
106
 
107
  ### Recommendations
108
 
109
+ Use at your own risk.