akommula commited on
Commit
0939908
·
1 Parent(s): 31da5fd

Added openpi_v2.py

Browse files
Files changed (2) hide show
  1. .openpi_v2.py.swp +0 -0
  2. openpi_v2.py +7 -9
.openpi_v2.py.swp CHANGED
Binary files a/.openpi_v2.py.swp and b/.openpi_v2.py.swp differ
 
openpi_v2.py CHANGED
@@ -41,8 +41,8 @@ _LICENSE = "CC BY 4.0"
41
  _VERSION = "1.0.0"
42
  _HOMEPAGE = "https://allenai.org/data/openpi"
43
  _URL = "https://github.com/allenai/openpi_v2/tree/main/v2/data/"
44
- _DATA_FILES = {"train": "train-data.json"
45
- "dev": "dev-data.json"
46
  "test": "test-data.json"}
47
 
48
 
@@ -53,7 +53,6 @@ class OpenpiConfig(datasets.BuilderConfig):
53
  self,
54
  text_features,
55
  data_url,
56
- data_dir,
57
  citation,
58
  url,
59
  process_label = lambda x: x,
@@ -63,7 +62,6 @@ class OpenpiConfig(datasets.BuilderConfig):
63
  super(OpenpiConfig, self).__init__(version = datasets.Version(_VERSION), **kwargs)
64
  self.text_features = text_features
65
  self.data_url = data_url
66
- self.data_dir = data_dir
67
  self.citation = citation
68
  self.url = url
69
  self.process_label = process_label
@@ -73,7 +71,7 @@ class OpenpiV2(datasets.GeneratorBasedBuilder):
73
 
74
  BUILDER_CONFIGS = [
75
  OpenpiConfig(
76
- name = "openpi_text"
77
  description = textwrap.dedent(
78
  """\
79
  """
@@ -88,9 +86,9 @@ class OpenpiV2(datasets.GeneratorBasedBuilder):
88
  {
89
  "answers_openpiv1_metadata": datasets.features.Sequence(
90
  {
91
- "entity": datasets.Value("string")
92
- "attribute": datasets.Value("string")
93
- "answers": [datasets.Value("string")]
94
  "modality": [datasets.Value("string")]
95
  }
96
  ),
@@ -101,7 +99,7 @@ class OpenpiV2(datasets.GeneratorBasedBuilder):
101
  )
102
  ]
103
  }),
104
- data_url = _URL
105
  citation = textwrap.dedent(
106
  """\
107
  @inproceedings{
 
41
  _VERSION = "1.0.0"
42
  _HOMEPAGE = "https://allenai.org/data/openpi"
43
  _URL = "https://github.com/allenai/openpi_v2/tree/main/v2/data/"
44
+ _DATA_FILES = {"train": "train-data.json",
45
+ "dev": "dev-data.json",
46
  "test": "test-data.json"}
47
 
48
 
 
53
  self,
54
  text_features,
55
  data_url,
 
56
  citation,
57
  url,
58
  process_label = lambda x: x,
 
62
  super(OpenpiConfig, self).__init__(version = datasets.Version(_VERSION), **kwargs)
63
  self.text_features = text_features
64
  self.data_url = data_url
 
65
  self.citation = citation
66
  self.url = url
67
  self.process_label = process_label
 
71
 
72
  BUILDER_CONFIGS = [
73
  OpenpiConfig(
74
+ name = "openpi_text",
75
  description = textwrap.dedent(
76
  """\
77
  """
 
86
  {
87
  "answers_openpiv1_metadata": datasets.features.Sequence(
88
  {
89
+ "entity": datasets.Value("string"),
90
+ "attribute": datasets.Value("string"),
91
+ "answers": [datasets.Value("string")],
92
  "modality": [datasets.Value("string")]
93
  }
94
  ),
 
99
  )
100
  ]
101
  }),
102
+ data_url = _URL,
103
  citation = textwrap.dedent(
104
  """\
105
  @inproceedings{