lcolonn commited on
Commit
4bd5cd3
1 Parent(s): df2e7e1

feat: add Features

Browse files
Files changed (1) hide show
  1. patfig.py +17 -17
patfig.py CHANGED
@@ -36,23 +36,23 @@ class PatFig(GeneratorBasedBuilder):
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):
 
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):