yes-man-today commited on
Commit
af72b6c
1 Parent(s): 62feb9d

further debbugging

Browse files
Files changed (1) hide show
  1. regulatory_comments.py +1 -5
regulatory_comments.py CHANGED
@@ -11,13 +11,10 @@
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
  # See the License for the specific language governing permissions and
13
  # limitations under the License.
14
- # TODO: Address all TODOs and remove all explanatory comments
15
  """TODO: Add a description here."""
16
 
17
 
18
- import csv
19
  import json
20
- import os
21
  import datasets
22
 
23
 
@@ -74,8 +71,6 @@ class RegComments(datasets.GeneratorBasedBuilder):
74
  urls = _URLS["url"]
75
  data_dir = dl_manager.download_and_extract(urls)
76
  print("urls accessed")
77
- print(data_dir)
78
-
79
  return [
80
  datasets.SplitGenerator(
81
  name=datasets.Split.TRAIN,
@@ -87,6 +82,7 @@ class RegComments(datasets.GeneratorBasedBuilder):
87
 
88
  def _generate_examples(self, filepath):
89
  """This function returns the examples in the raw (text) form."""
 
90
  key = 0
91
  with open(filepath, 'r', encoding='utf-8') as f:
92
  data = json.load(f)
 
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
  # See the License for the specific language governing permissions and
13
  # limitations under the License.
 
14
  """TODO: Add a description here."""
15
 
16
 
 
17
  import json
 
18
  import datasets
19
 
20
 
 
71
  urls = _URLS["url"]
72
  data_dir = dl_manager.download_and_extract(urls)
73
  print("urls accessed")
 
 
74
  return [
75
  datasets.SplitGenerator(
76
  name=datasets.Split.TRAIN,
 
82
 
83
  def _generate_examples(self, filepath):
84
  """This function returns the examples in the raw (text) form."""
85
+ print("enter generate")
86
  key = 0
87
  with open(filepath, 'r', encoding='utf-8') as f:
88
  data = json.load(f)