andylolu24
commited on
Commit
•
21f59ea
1
Parent(s):
f5e403e
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
---
|
4 |
+
# Wikipedia dataset from OLLM
|
5 |
+
|
6 |
+
Repository: https://github.com/andylolu2/ollm
|
7 |
+
|
8 |
+
- Train graph: `train_eval_split/train_graph.json`
|
9 |
+
- Validation graph: `train_eval_split/test_graph.json`
|
10 |
+
- Test graph: `train_test_split/test_graph.json`
|
11 |
+
|
12 |
+
Load the graph with `networkx`:
|
13 |
+
```python
|
14 |
+
import networkx as nx
|
15 |
+
|
16 |
+
with open(path_to_graph, "r") as f:
|
17 |
+
G = nx.node_link_graph(json.load(f), edges="links")
|
18 |
+
```
|