yes-man-today
commited on
Commit
·
b125e16
1
Parent(s):
ddf5e79
remove print comments
Browse files- regulatory_comments.py +0 -3
regulatory_comments.py
CHANGED
@@ -68,10 +68,8 @@ class RegComments(datasets.GeneratorBasedBuilder):
|
|
68 |
|
69 |
# Method to handle dataset splitting (e.g., train/test)
|
70 |
def _split_generators(self, dl_manager):
|
71 |
-
print("split generators called")
|
72 |
urls = _URLS["url"]
|
73 |
data_dir = dl_manager.download_and_extract(urls)
|
74 |
-
print("urls accessed")
|
75 |
# Defining the split (here, only train split is defined)
|
76 |
return [
|
77 |
datasets.SplitGenerator(
|
@@ -85,7 +83,6 @@ class RegComments(datasets.GeneratorBasedBuilder):
|
|
85 |
# Method to generate examples from the dataset
|
86 |
def _generate_examples(self, filepath):
|
87 |
"""This function returns the examples in the raw (text) form."""
|
88 |
-
print("enter generate")
|
89 |
key = 0
|
90 |
with open(filepath, 'r', encoding='utf-8') as f:
|
91 |
data = json.load(f)
|
|
|
68 |
|
69 |
# Method to handle dataset splitting (e.g., train/test)
|
70 |
def _split_generators(self, dl_manager):
|
|
|
71 |
urls = _URLS["url"]
|
72 |
data_dir = dl_manager.download_and_extract(urls)
|
|
|
73 |
# Defining the split (here, only train split is defined)
|
74 |
return [
|
75 |
datasets.SplitGenerator(
|
|
|
83 |
# Method to generate examples from the dataset
|
84 |
def _generate_examples(self, filepath):
|
85 |
"""This function returns the examples in the raw (text) form."""
|
|
|
86 |
key = 0
|
87 |
with open(filepath, 'r', encoding='utf-8') as f:
|
88 |
data = json.load(f)
|