pei0033 commited on
Commit
bdc41dd
·
verified ·
1 Parent(s): eb050ee

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +218 -0
README.md CHANGED
@@ -15,3 +15,221 @@ configs:
15
  - split: train
16
  path: data/train-*
17
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  - split: train
16
  path: data/train-*
17
  ---
18
+
19
+ # 2K Book Titles Dataset
20
+
21
+ ## Dataset Description
22
+
23
+ This dataset contains 2,000 book titles from various genres and time periods, ranging from classic literature to contemporary works. The dataset is designed for natural language processing tasks involving book titles, such as text generation, classification, or recommendation systems.
24
+
25
+ ## Dataset Structure
26
+
27
+ ### Data Fields
28
+
29
+ - `book_title` (string): The title of the book
30
+
31
+ ### Data Splits
32
+
33
+ The dataset contains a single split with 2,000 examples:
34
+
35
+ | Split | Examples |
36
+ |-------|----------|
37
+ | train | 2,000 |
38
+
39
+ # Example Json Schema
40
+
41
+ ```json
42
+ {
43
+ "title": "Book Schema",
44
+ "description": "A schema for a book, including its title, author, and other details.",
45
+ "type": "object",
46
+ "properties": {
47
+ "title": {
48
+ "description": "The title of the book.",
49
+ "type": "string"
50
+ },
51
+ "author": {
52
+ "description": "The author of the book.",
53
+ "type": "string"
54
+ },
55
+ "publication_year": {
56
+ "description": "The year the book was published.",
57
+ "type": "integer",
58
+ "minimum": 0
59
+ },
60
+ "isbn": {
61
+ "description": "The International Standard Book Number.",
62
+ "type": "string",
63
+ "pattern": "^(978|979)-\\d{1,5}-\\d{1,7}-\\d{1,6}-\\d$"
64
+ },
65
+ "genres": {
66
+ "description": "A list of genres for the book.",
67
+ "type": "array",
68
+ "items": {
69
+ "type": "string"
70
+ },
71
+ "minItems": 1,
72
+ "uniqueItems": true
73
+ },
74
+ "is_available": {
75
+ "description": "A boolean indicating if the book is currently available.",
76
+ "type": "boolean"
77
+ },
78
+ "language": {
79
+ "description": "The language the book is written in.",
80
+ "type": "string"
81
+ },
82
+ "page_count": {
83
+ "description": "The total number of pages in the book.",
84
+ "type": "integer",
85
+ "minimum": 1
86
+ }
87
+ },
88
+ "required": [
89
+ "title",
90
+ "author",
91
+ "publication_year",
92
+ "isbn"
93
+ ]
94
+ }
95
+ ```
96
+
97
+ more complex version
98
+ ```json
99
+ {
100
+ "$schema": "http://json-schema.org/draft-07/schema#",
101
+ "$id": "https://example.com/schemas/complex-book.json",
102
+ "title": "Book Schema",
103
+ "description": "A comprehensive schema for a book, including detailed author information, publication history, and subject classifications.",
104
+ "type": "object",
105
+ "properties": {
106
+ "title": {
107
+ "description": "The primary title of the book.",
108
+ "type": "string",
109
+ "minLength": 1,
110
+ "maxLength": 255
111
+ },
112
+ "subtitle": {
113
+ "description": "The secondary title of the book, if applicable.",
114
+ "type": "string"
115
+ },
116
+ "authors": {
117
+ "description": "A list of authors, with detailed information for each.",
118
+ "type": "array",
119
+ "items": {
120
+ "type": "object",
121
+ "properties": {
122
+ "name": {
123
+ "type": "string",
124
+ "description": "The full name of the author."
125
+ },
126
+ "birth_year": {
127
+ "type": "integer",
128
+ "minimum": 0,
129
+ "maximum": 2025
130
+ },
131
+ "nationality": {
132
+ "type": "string"
133
+ }
134
+ },
135
+ "required": [
136
+ "name"
137
+ ]
138
+ },
139
+ "minItems": 1
140
+ },
141
+ "publication_info": {
142
+ "description": "Detailed information about the book's publication history.",
143
+ "type": "object",
144
+ "properties": {
145
+ "publisher": {
146
+ "type": "string",
147
+ "minLength": 1
148
+ },
149
+ "publication_date": {
150
+ "type": "string",
151
+ "format": "date",
152
+ "description": "The original publication date in YYYY-MM-DD format."
153
+ },
154
+ "edition": {
155
+ "type": "integer",
156
+ "minimum": 1
157
+ }
158
+ },
159
+ "required": [
160
+ "publisher",
161
+ "publication_date"
162
+ ]
163
+ },
164
+ "identifiers": {
165
+ "description": "Standard identifiers for the book.",
166
+ "type": "object",
167
+ "properties": {
168
+ "isbn_13": {
169
+ "type": "string",
170
+ "pattern": "^(978|979)-\\d{1,5}-\\d{1,7}-\\d{1,6}-\\d$",
171
+ "description": "The ISBN-13 of the book."
172
+ },
173
+ "isbn_10": {
174
+ "type": "string",
175
+ "pattern": "^\\d{1}-\\d{3}-\\d{5}-\\d$",
176
+ "description": "The ISBN-10 of the book."
177
+ }
178
+ },
179
+ "required": [
180
+ "isbn_13"
181
+ ]
182
+ },
183
+ "categories": {
184
+ "description": "A hierarchical classification of the book's subjects.",
185
+ "type": "array",
186
+ "items": {
187
+ "type": "object",
188
+ "properties": {
189
+ "main_category": {
190
+ "type": "string"
191
+ },
192
+ "sub_categories": {
193
+ "type": "array",
194
+ "items": {
195
+ "type": "string"
196
+ }
197
+ }
198
+ },
199
+ "required": [
200
+ "main_category"
201
+ ]
202
+ }
203
+ },
204
+ "stock_info": {
205
+ "description": "Current stock and availability information.",
206
+ "type": "object",
207
+ "properties": {
208
+ "quantity_in_stock": {
209
+ "type": "integer",
210
+ "minimum": 0
211
+ },
212
+ "on_sale": {
213
+ "type": "boolean",
214
+ "default": false
215
+ }
216
+ },
217
+ "required": [
218
+ "quantity_in_stock"
219
+ ]
220
+ },
221
+ "summary": {
222
+ "description": "A brief synopsis of the book's plot or content.",
223
+ "type": "string",
224
+ "minLength": 50,
225
+ "maxLength": 300
226
+ }
227
+ },
228
+ "required": [
229
+ "title",
230
+ "authors",
231
+ "publication_info",
232
+ "identifiers"
233
+ ]
234
+ }
235
+ ```