Datasets:
lcolonn
commited on
feat: add Features
Browse files
patfig.py
CHANGED
@@ -36,23 +36,23 @@ class PatFig(GeneratorBasedBuilder):
|
|
36 |
def _info(self):
|
37 |
return DatasetInfo(
|
38 |
description=_DESCRIPTION,
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
)
|
57 |
|
58 |
def _split_generators(self, dl_manager: datasets.DownloadManager):
|
|
|
36 |
def _info(self):
|
37 |
return DatasetInfo(
|
38 |
description=_DESCRIPTION,
|
39 |
+
features=Features({
|
40 |
+
"image": Image(),
|
41 |
+
"image_name": Value("string"),
|
42 |
+
"pub_number": Value("string"),
|
43 |
+
"title": Value("string"),
|
44 |
+
"figs_norm": Sequence(feature=Value("string"), length=-1),
|
45 |
+
"short_description": Sequence(feature=Value("string"), length=-1),
|
46 |
+
"long_description": Sequence(feature=Value("string"), length=-1),
|
47 |
+
"short_description_token_count": Value("int64"),
|
48 |
+
"long_description_token_count": Value("int64"),
|
49 |
+
"draft_class": Value("string"),
|
50 |
+
"cpc_class": Value("string"),
|
51 |
+
"relevant_terms": [{'element_identifier': Value("string"), "terms": Sequence(feature=Value("string"), length=-1)}],
|
52 |
+
"associated_claims": Value("string"),
|
53 |
+
"compound": Value("bool"),
|
54 |
+
"references": Sequence(feature=Value(dtype='string'), length=-1),
|
55 |
+
}),
|
56 |
)
|
57 |
|
58 |
def _split_generators(self, dl_manager: datasets.DownloadManager):
|