macadeliccc
commited on
Commit
•
7f222f8
1
Parent(s):
7919ec9
Update README.md
Browse files
README.md
CHANGED
@@ -23,5 +23,16 @@ This dataset consists of US Federal laws that are voted in by either Congress or
|
|
23 |
|
24 |
## Loading Script
|
25 |
|
|
|
|
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
|
|
23 |
|
24 |
## Loading Script
|
25 |
|
26 |
+
```python
|
27 |
+
import datasets
|
28 |
|
29 |
+
congress = datasets.load_dataset('macadeliccc/US-FederalLaws', 'congress', split='train')
|
30 |
+
house_of_reps_dataset = datasets.load_dataset('macadeliccc/US-FederalLaws', 'house_of_reps', split='train')
|
31 |
+
|
32 |
+
iterable_congress = congress.to_iterable_dataset()
|
33 |
+
iterable_house_of_reps = house_of_reps_dataset.to_iterable_dataset()
|
34 |
+
|
35 |
+
print(next(iter(iterable_congress)))
|
36 |
+
print(next(iter(iterable_house_of_reps)))
|
37 |
+
```
|
38 |
|