Threatthriver
commited on
Commit
•
e939083
1
Parent(s):
c3f6ae4
Update README.md
Browse files
README.md
CHANGED
@@ -37,6 +37,7 @@ The dataset is stored in a JSON file named scraped_data.json. Each entry in the
|
|
37 |
}
|
38 |
## How to Use Load the Dataset
|
39 |
You can load the JSON file using standard Python libraries such as json or use data processing libraries like pandas.
|
|
|
40 |
import json
|
41 |
with open('scraped_data.json', 'r', encoding='utf-8') as file:
|
42 |
data = json.load(file)
|
@@ -52,6 +53,8 @@ paragraphs = entry['paragraphs']
|
|
52 |
for paragraph in paragraphs:
|
53 |
# Your processing code here
|
54 |
pass
|
|
|
|
|
55 |
Loading the Dataset with Hugging Face
|
56 |
You can also load this dataset directly using the Hugging Face datasets library. The dataset is available under the identifier Threatthriver/Hindi-story-news.
|
57 |
Example Code
|
|
|
37 |
}
|
38 |
## How to Use Load the Dataset
|
39 |
You can load the JSON file using standard Python libraries such as json or use data processing libraries like pandas.
|
40 |
+
```
|
41 |
import json
|
42 |
with open('scraped_data.json', 'r', encoding='utf-8') as file:
|
43 |
data = json.load(file)
|
|
|
53 |
for paragraph in paragraphs:
|
54 |
# Your processing code here
|
55 |
pass
|
56 |
+
```
|
57 |
+
|
58 |
Loading the Dataset with Hugging Face
|
59 |
You can also load this dataset directly using the Hugging Face datasets library. The dataset is available under the identifier Threatthriver/Hindi-story-news.
|
60 |
Example Code
|