yes-man-today
commited on
Commit
•
5c25b73
1
Parent(s):
bfeec27
new attempt; added keywords and other features
Browse files- .DS_Store +0 -0
- archive/docket_comments.json +0 -0
- docket_comments.json +0 -0
- regulatory_comments.py +19 -13
.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
archive/docket_comments.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
docket_comments.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
regulatory_comments.py
CHANGED
@@ -66,6 +66,8 @@ class RegComments(datasets.GeneratorBasedBuilder):
|
|
66 |
"id": datasets.Value("string"),
|
67 |
"title": datasets.Value("string"),
|
68 |
"context": datasets.Value("string"),
|
|
|
|
|
69 |
"comments": datasets.Sequence({
|
70 |
"text": datasets.Value("string"),
|
71 |
"comment_id": datasets.Value("string"),
|
@@ -110,24 +112,28 @@ class RegComments(datasets.GeneratorBasedBuilder):
|
|
110 |
docket_id = docket["id"]
|
111 |
docket_title = docket["title"]
|
112 |
docket_context = docket["context"]
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
|
|
|
|
126 |
|
127 |
yield key, {
|
128 |
"id": docket_id,
|
129 |
"title": docket_title,
|
130 |
"context": docket_context,
|
|
|
|
|
131 |
"comments": comments
|
132 |
}
|
133 |
key += 1
|
|
|
66 |
"id": datasets.Value("string"),
|
67 |
"title": datasets.Value("string"),
|
68 |
"context": datasets.Value("string"),
|
69 |
+
"purpose": datasets.Value("string"),
|
70 |
+
"keywords": datasets.Sequence(datasets.Value("string")),
|
71 |
"comments": datasets.Sequence({
|
72 |
"text": datasets.Value("string"),
|
73 |
"comment_id": datasets.Value("string"),
|
|
|
112 |
docket_id = docket["id"]
|
113 |
docket_title = docket["title"]
|
114 |
docket_context = docket["context"]
|
115 |
+
docket_purpose = docket["purpose"]
|
116 |
+
docket_keywords = docket["keywords"]
|
117 |
+
comments = docket["comments"]
|
118 |
+
# for comment in docket["comments"]:
|
119 |
+
# comment_data = {
|
120 |
+
# "text": comment["text"],
|
121 |
+
# "comment_id": comment["comment_id"],
|
122 |
+
# "comment_url": comment["comment_url"],
|
123 |
+
# "comment_date": comment["comment_date"],
|
124 |
+
# "comment_title": comment["comment_title"],
|
125 |
+
# "commenter_fname": comment["commenter_fname"],
|
126 |
+
# "commenter_lname": comment["commenter_lname"],
|
127 |
+
# "comment_length": comment["comment_length"]
|
128 |
+
# }
|
129 |
+
# comments.append(comment_data)
|
130 |
|
131 |
yield key, {
|
132 |
"id": docket_id,
|
133 |
"title": docket_title,
|
134 |
"context": docket_context,
|
135 |
+
"purpose": docket_purpose,
|
136 |
+
"keywords": docket_keywords,
|
137 |
"comments": comments
|
138 |
}
|
139 |
key += 1
|