init
Browse files
README.md
CHANGED
@@ -37,6 +37,10 @@ We apply filtering to keep triples with alpha-numeric subject and object, as wel
|
|
37 |
| filter | 780 | 614 | 616 | 2,010 |
|
38 |
|
39 |
### Filtering to Purify the Dataset
|
|
|
|
|
|
|
|
|
40 |
|
41 |
| min entity/max predicate | 10 | 25 | 50 | 100 |
|
42 |
|-------------------------:|-----:|------:|------:|------:|
|
@@ -45,7 +49,9 @@ We apply filtering to keep triples with alpha-numeric subject and object, as wel
|
|
45 |
| 3 | 4,986 | 10,093 | 16,599 | 26,151 |
|
46 |
| 4 | 4,640 | 9,384 | 15,335 | 24,075 |
|
47 |
|
48 |
-
|
|
|
|
|
49 |
|
50 |
|
51 |
## Dataset Structure
|
|
|
37 |
| filter | 780 | 614 | 616 | 2,010 |
|
38 |
|
39 |
### Filtering to Purify the Dataset
|
40 |
+
We reduce the size of the dataset by applying filtering based on the number of predicates and entities in the triples.
|
41 |
+
We first remove triples that contain either of subject or object with the occurrence in the dataset that is lower than `min entity`.
|
42 |
+
Then, we reduce the number triples in each predicate to be less than `max predicate`.
|
43 |
+
If the number of triples in a predicate is higher than `max predicate`, we choose top-`max predicate` triples in terms of the frequency of the subject and the object.
|
44 |
|
45 |
| min entity/max predicate | 10 | 25 | 50 | 100 |
|
46 |
|-------------------------:|-----:|------:|------:|------:|
|
|
|
49 |
| 3 | 4,986 | 10,093 | 16,599 | 26,151 |
|
50 |
| 4 | 4,640 | 9,384 | 15,335 | 24,075 |
|
51 |
|
52 |
+
<img src="https://huggingface.co/datasets/relbert/t_rex/raw/main/data/stats.predicate_distribution.png" alt="" width="150" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
|
53 |
+
|
54 |
+
<img src="https://huggingface.co/datasets/relbert/t_rex/raw/main/data/stats.entity_distribution.png" alt="" width="150" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
|
55 |
|
56 |
|
57 |
## Dataset Structure
|