Update README.md
Browse files
README.md
CHANGED
|
@@ -37,26 +37,12 @@ The number of triples in each split is summarized in the table below.
|
|
| 37 |
We apply filtering to keep triples with named-entities in either of head or tail (`named-entity filter`).
|
| 38 |
Then, we remove predicates if they have less than three triples (`rare-predicate filter`).
|
| 39 |
After the filtering, we manually remove too vague and noisy predicate, and unify same predicates with different names (see the annotation [here](https://huggingface.co/datasets/relbert/t_rex/raw/main/predicate_manual_check.csv)).
|
|
|
|
| 40 |
|
| 41 |
-
| Dataset | `raw` | `named-entity filter` | `rare-predicate` | `unify-denoise-predicate` |
|
| 42 |
-
|
| 43 |
-
| Triples | 20,877,472 | 12,561,573 | 12,561,250 | 432,781 |
|
| 44 |
-
| Predicate | 1,616 | 1,470 | 1,237 | 246
|
| 45 |
-
|
| 46 |
-
### Filtering to Purify the Dataset
|
| 47 |
-
We reduce the size of the dataset by applying filtering based on the number of predicates and entities in the triples.
|
| 48 |
-
We first remove triples that contain either of subject or object with the occurrence in the dataset that is lower than `min entity`.
|
| 49 |
-
Then, we reduce the number triples in each predicate to be less than `max predicate`.
|
| 50 |
-
If the number of triples in a predicate is higher than `max predicate`,
|
| 51 |
-
we choose top-`max predicate` triples based on the frequency of the subject and the object, or random sampling.
|
| 52 |
-
|
| 53 |
-
- distribution of entities
|
| 54 |
-
|
| 55 |
-
<img src="https://huggingface.co/datasets/relbert/t_rex/resolve/main/data/stats.entity_distribution.png" alt="" width="600" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
|
| 56 |
-
|
| 57 |
-
- distribution of predicates
|
| 58 |
-
|
| 59 |
-
<img src="https://huggingface.co/datasets/relbert/t_rex/resolve/main/data/stats.predicate_distribution.png" alt="" width="600" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
|
| 60 |
|
| 61 |
|
| 62 |
## Dataset Structure
|
|
|
|
| 37 |
We apply filtering to keep triples with named-entities in either of head or tail (`named-entity filter`).
|
| 38 |
Then, we remove predicates if they have less than three triples (`rare-predicate filter`).
|
| 39 |
After the filtering, we manually remove too vague and noisy predicate, and unify same predicates with different names (see the annotation [here](https://huggingface.co/datasets/relbert/t_rex/raw/main/predicate_manual_check.csv)).
|
| 40 |
+
Finally, we remove triples that contain enties that has frequency less than 5 (`frequnecy`).
|
| 41 |
|
| 42 |
+
| Dataset | `raw` | `named-entity filter` | `rare-predicate` | `unify-denoise-predicate` | `frequnecy` |
|
| 43 |
+
|:----------|-----------:|-----------------------:|-----------------:|--------------------------:|------------:|
|
| 44 |
+
| Triples | 20,877,472 | 12,561,573 | 12,561,250 | 432,781 | 48,768 |
|
| 45 |
+
| Predicate | 1,616 | 1,470 | 1,237 | 246 | 246 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
## Dataset Structure
|