songhai2022
commited on
Commit
•
139caf3
1
Parent(s):
55c69ca
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: custom
|
3 |
+
tags:
|
4 |
+
- faker
|
5 |
+
- data-generation
|
6 |
+
- json
|
7 |
+
pipeline_tag: text-generation
|
8 |
+
---
|
9 |
+
|
10 |
+
# Fake News Network Data Generator
|
11 |
+
|
12 |
+
This model generates fake data for a news network, including nodes (news articles) and links (relationships between articles). It's designed to create realistic-looking data for testing, development, or demonstration purposes.
|
13 |
+
|
14 |
+
## Model Description
|
15 |
+
|
16 |
+
The model uses the Faker library to generate random but realistic-looking data for a network of news articles. It creates a specified number of nodes (articles) and links (relationships between articles), with various attributes such as headlines, topics, emotions, dates, and sentiments.
|
17 |
+
|
18 |
+
### Input
|
19 |
+
|
20 |
+
The model accepts a JSON input with the following optional parameters:
|
21 |
+
|
22 |
+
- `num_nodes`: The number of news article nodes to generate (default: 10)
|
23 |
+
- `num_links`: The number of links between articles to generate (default: 5)
|
24 |
+
|
25 |
+
Example input:
|
26 |
+
```json
|
27 |
+
{
|
28 |
+
"num_nodes": 15,
|
29 |
+
"num_links": 8
|
30 |
+
}
|