Skip to content

Commit 846984c

Browse files
Update README.md
1 parent 0843e16 commit 846984c

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,14 @@ options:
9595
--no-inference Disable relationship inference
9696
```
9797

98-
### Example output
98+
### Example Run
9999

100+
**Command:**
101+
102+
```bash
103+
generate-graph --input data/industrial-revolution.txt --output industrial-revolution-kg.html
104+
```
105+
**Console Output:**
100106

101107
```markdown
102108
Using input text from file: data/industrial-revolution.txt
@@ -165,14 +171,14 @@ Top 5 relationship types after inference:
165171

166172
Added 370 inferred relationships
167173
Final knowledge graph: 564 triples
168-
Saved raw knowledge graph data to /mnt/c/Users/rmcdermo/Documents/industrial-revolution-kb101.json
174+
Saved raw knowledge graph data to /mnt/c/Users/rmcdermo/Documents/industrial-revolution-kg.json
169175
Processing 564 triples for visualization
170176
Found 161 unique nodes
171177
Found 355 inferred relationships
172178
Detected 9 communities using Louvain method
173179
Nodes in NetworkX graph: 161
174180
Edges in NetworkX graph: 537
175-
Knowledge graph visualization saved to /mnt/c/Users/rmcdermo/Documents/industrial-revolution-kb101.html
181+
Knowledge graph visualization saved to /mnt/c/Users/rmcdermo/Documents/industrial-revolution-kg.html
176182
Graph Statistics: {
177183
"nodes": 161,
178184
"edges": 564,
@@ -187,7 +193,7 @@ Edges: 564
187193
Communities: 9
188194

189195
To view the visualization, open the following file in your browser:
190-
file:///mnt/c/Users/rmcdermo/Documents/industrial-revolution-kb101.html
196+
file:///mnt/c/Users/rmcdermo/Documents/industrial-revolution-kg.html
191197
```
192198

193199
## How It Works

0 commit comments

Comments
 (0)