Threatthriver commited on
Commit
b85faf5
·
verified ·
1 Parent(s): 08eacae

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +62 -3
README.md CHANGED
@@ -1,3 +1,62 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - question-answering
5
+ - text-classification
6
+ - text-generation
7
+ ---
8
+ # Hindi Web Content Dataset
9
+ ## Overview
10
+ This dataset contains a collection of Hindi text data scraped from various websites. The data was collected using a domain-restricted scraper that extracts paragraphs of text from specified domains. The dataset includes content from news articles, literature, and other web pages. The scraped text has been stored in JSON format and is intended for use in natural language processing (NLP) tasks, such as language modeling, text generation, and sentiment analysis.
11
+ ## Dataset Details
12
+ * Size: At least 30MB of text data
13
+ * Language: Hindi
14
+ * Format: JSON
15
+ * Source Domains:
16
+ + [NDTV Hindi](https://ndtv.in)
17
+ + [Jansatta](https://www.jansatta.com)
18
+ + [Hindwi](https://www.hindwi.org)
19
+ ## Structure of the Dataset
20
+ The dataset is stored in a JSON file named scraped_data.json. Each entry in the JSON file corresponds to a web page and contains the following fields:
21
+ * url: The URL of the web page.
22
+ * title: The title of the web page.
23
+ * paragraphs: A list of paragraphs extracted from the web page.
24
+ ### Example Entry
25
+ json {
26
+ "url": "https://example.com/article",
27
+ "title": "Example Article Title",
28
+ "paragraphs": [
29
+ "This is the first paragraph of the article.",
30
+ "This is the second paragraph of the article.",
31
+ // More paragraphs...
32
+ ]
33
+ }
34
+ ## How to Use Load the Dataset
35
+ You can load the JSON file using standard Python libraries such as json or use data processing libraries like pandas.
36
+ import json
37
+ with open('scraped_data.json', 'r', encoding='utf-8') as file:
38
+ data = json.load(file)
39
+ Data Processing
40
+ Once loaded, you can process the data for your specific NLP tasks. For instance, you can concatenate all paragraphs for text generation models or tokenize the text for sentiment analysis.
41
+ Example Usage
42
+ Below is an example of how you can iterate through the dataset and process the paragraphs.
43
+ for entry in data:
44
+ url = entry['url']
45
+ title = entry['title']
46
+ paragraphs = entry['paragraphs']
47
+ # Process the paragraphs
48
+ for paragraph in paragraphs:
49
+ # Your processing code here
50
+ pass
51
+ Loading the Dataset with Hugging Face
52
+ You can also load this dataset directly using the Hugging Face datasets library. The dataset is available under the identifier Threatthriver/Hindi-story-news.
53
+ Example Code
54
+ from datasets import load_dataset
55
+ ds = load_dataset("Threatthriver/Hindi-story-news")
56
+ This will load the dataset into a datasets.Dataset object, which you can then use for various NLP tasks.
57
+ License
58
+ The data scraped from the mentioned websites is subject to their respective terms of use and copyright policies. Users of this dataset must ensure that their use complies with these terms and respects the intellectual property rights of the content owners.
59
+ Acknowledgements
60
+ We acknowledge the efforts of the content creators and website owners for providing valuable information in the Hindi language. Their contributions are invaluable for advancing NLP research and applications in regional languages.
61
+ Contact
62
+ For any questions or issues regarding this dataset, please feel free to reach out to us.