Update README.md
Browse files
README.md
CHANGED
@@ -20,6 +20,23 @@ size_categories:
|
|
20 |
|
21 |
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
## Dataset Format
|
24 |
|
25 |
The dataset includes heterogeneous graph edges, raw text, PLM-based features, labels, and years associated with text-attributed nodes. Raw text is provided in `.csv` or `.csv.zip` files, while the remaining data are stored in a dictionary object within a `.pkl` file. For example, by reading the `tmdb.pkl` file, the following dictionary can be obtained:
|
@@ -50,32 +67,32 @@ The dataset includes heterogeneous graph edges, raw text, PLM-based features, la
|
|
50 |
|
51 |
## Dataset Statistics
|
52 |
|
53 |
-
|
|
54 |
-
|
|
55 |
-
| TMDB
|
56 |
-
|
|
57 |
-
|
|
58 |
-
|
|
59 |
-
| CroVal | **44386** | **164,981** | 6 | Train:
|
60 |
-
|
|
61 |
-
|
|
62 |
-
|
|
63 |
-
| ArXiv
|
64 |
-
|
|
65 |
-
|
|
66 |
-
|
|
67 |
-
| Book
|
68 |
-
|
|
69 |
-
|
|
70 |
-
|
|
71 |
-
| DBLP
|
72 |
-
|
|
73 |
-
|
|
74 |
-
|
|
75 |
-
| Patent | **5,646,139** | **8,833,738** | 120 | Train: 1,705,155 |
|
76 |
-
|
|
77 |
-
|
|
78 |
-
|
|
79 |
|
80 |
|
81 |
|
|
|
20 |
|
21 |
|
22 |
|
23 |
+
## Download
|
24 |
+
|
25 |
+
```python
|
26 |
+
from huggingface_hub import snapshot_download
|
27 |
+
|
28 |
+
# Download all
|
29 |
+
snapshot_download(repo_id="Cloudy1225/HTAG", repo_type="dataset", local_dir="./data")
|
30 |
+
|
31 |
+
# Or just download heterogeneous graphs and PLM-based node features
|
32 |
+
snapshot_download(repo_id="Cloudy1225/HTAG", repo_type="dataset", local_dir="./data", allow_patterns="*.pkl")
|
33 |
+
|
34 |
+
# Or just download raw texts
|
35 |
+
snapshot_download(repo_id="Cloudy1225/HTAG", repo_type="dataset", local_dir="./data", allow_patterns=["*.csv", "*.csv.zip"])
|
36 |
+
```
|
37 |
+
|
38 |
+
|
39 |
+
|
40 |
## Dataset Format
|
41 |
|
42 |
The dataset includes heterogeneous graph edges, raw text, PLM-based features, labels, and years associated with text-attributed nodes. Raw text is provided in `.csv` or `.csv.zip` files, while the remaining data are stored in a dictionary object within a `.pkl` file. For example, by reading the `tmdb.pkl` file, the following dictionary can be obtained:
|
|
|
67 |
|
68 |
## Dataset Statistics
|
69 |
|
70 |
+
| | # Nodes | # Edges | # Classes | # Splits |
|
71 |
+
| ------------------------------------------------------------ | ------------------- | -------------------------- | --------- | ---------------- |
|
72 |
+
| [TMDB](https://huggingface.co/datasets/Cloudy1225/HTAG/blob/main/tmdb/README.md) | **24,412** | **104,858** | 4 | Train: 5,698 |
|
73 |
+
| | Movie: 7,505 | Movie-Actor: 86,517 | | Valid: 711 |
|
74 |
+
| | Actor: 13,016 | Movie-Director: 18,341 | | Test: 1,096 |
|
75 |
+
| | Director: 3,891 | | | |
|
76 |
+
| [CroVal](https://huggingface.co/datasets/Cloudy1225/HTAG/blob/main/croval/README.md) | **44386** | **164,981** | 6 | Train: 980 |
|
77 |
+
| | Question: 34153 | Question-Question: 46,269 | | Valid: 1,242 |
|
78 |
+
| | User: 8898 | Question-User: 34,153 | | Test: 31,931 |
|
79 |
+
| | Tag: 1335 | Question-Tag: 84,559 | | |
|
80 |
+
| [ArXiv](https://huggingface.co/datasets/Cloudy1225/HTAG/blob/main/arxiv/README.md) | **231,111** | **2,075,692** | 40 | Train: 47,084 |
|
81 |
+
| | Paper: 81,634 | Paper-Paper: 1,019,624 | | Valid: 18,170 |
|
82 |
+
| | Author: 127,590 | Paper-Author: 300,233 | | Test: 16,380 |
|
83 |
+
| | FoS: 21,887 | Paper-FoS: 755,835 | | |
|
84 |
+
| [Book](https://huggingface.co/datasets/Cloudy1225/HTAG/blob/main/book/README.md) | **786,257** | **9,035,291** | 8 | Train: 330,201 |
|
85 |
+
| | Book | Book-Book: 7,614,902 | | Valid: 57,220 |
|
86 |
+
| | Author | Book-Author: 825,905 | | Test: 207,063 |
|
87 |
+
| | Publisher | Book-Publisher: 594,484 | | |
|
88 |
+
| [DBLP](https://huggingface.co/datasets/Cloudy1225/HTAG/blob/main/dblp/README.md) | **1,989,010** | **29,830,033** | 9 | Train: 508,464 |
|
89 |
+
| | Paper: 964350 | Paper-Paper: 16,679,526 | | Valid: 158,891 |
|
90 |
+
| | Author: 958961 | Paper-Author: 3,070,343 | | Test: 296,995 |
|
91 |
+
| | FoS: 65699 | Paper-FoS: 10,080,164 | | |
|
92 |
+
| [Patent](https://huggingface.co/datasets/Cloudy1225/HTAG/blob/main/patent/README.md) | **5,646,139** | **8,833,738** | 120 | Train: 1,705,155 |
|
93 |
+
| | Patent: 2,762,187 | Patent-Inventor: 6,071,551 | | Valid: 374,275 |
|
94 |
+
| | Inventor: 2,873,311 | Patent-Examiner: 2,762,187 | | Test: 682,757 |
|
95 |
+
| | Examiner: 10,641 | | | |
|
96 |
|
97 |
|
98 |
|