fix readme
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +37 -0
- README.md +42 -21
- check_split.py +8 -7
- create_split.py +66 -0
- data/stats.data_size.csv +2 -2
- data/stats.entity_distribution.png +2 -2
- data/stats.predicate_distribution.png +2 -2
- data/stats.predicate_size.csv +3 -3
- data/{t_rex.filter_unified.min_entity_12_max_predicate_10.test.jsonl → t_rex.filter_unified.min_entity_12_max_predicate_10.jsonl} +2 -2
- data/{t_rex.filter_unified.min_entity_12_max_predicate_10.train.jsonl → t_rex.filter_unified.min_entity_12_max_predicate_100.jsonl} +2 -2
- data/t_rex.filter_unified.min_entity_12_max_predicate_100.train.jsonl +0 -3
- data/{t_rex.filter_unified.min_entity_12_max_predicate_100.test.jsonl → t_rex.filter_unified.min_entity_12_max_predicate_25.jsonl} +2 -2
- data/t_rex.filter_unified.min_entity_12_max_predicate_25.train.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_12_max_predicate_25.validation.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_12_max_predicate_50.jsonl +3 -0
- data/t_rex.filter_unified.min_entity_12_max_predicate_50.test.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_12_max_predicate_50.train.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_12_max_predicate_50.validation.jsonl +0 -3
- data/{t_rex.filter_unified.min_entity_12_max_predicate_100.validation.jsonl → t_rex.filter_unified.min_entity_16_max_predicate_10.jsonl} +2 -2
- data/t_rex.filter_unified.min_entity_16_max_predicate_10.test.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_16_max_predicate_10.train.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_16_max_predicate_10.validation.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_16_max_predicate_100.jsonl +3 -0
- data/t_rex.filter_unified.min_entity_16_max_predicate_100.test.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_16_max_predicate_100.train.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_16_max_predicate_100.validation.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_16_max_predicate_25.jsonl +3 -0
- data/t_rex.filter_unified.min_entity_16_max_predicate_25.test.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_16_max_predicate_25.train.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_16_max_predicate_25.validation.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_16_max_predicate_50.jsonl +3 -0
- data/t_rex.filter_unified.min_entity_16_max_predicate_50.test.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_16_max_predicate_50.train.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_16_max_predicate_50.validation.jsonl +0 -3
- data/t_rex.filter_unified.min_entity_1_max_predicate_10.jsonl +3 -0
- data/t_rex.filter_unified.min_entity_1_max_predicate_10.train.jsonl +3 -0
- data/{t_rex.filter_unified.min_entity_12_max_predicate_10.validation.jsonl → t_rex.filter_unified.min_entity_1_max_predicate_10.validation.jsonl} +2 -2
- data/t_rex.filter_unified.min_entity_1_max_predicate_100.jsonl +3 -0
- data/t_rex.filter_unified.min_entity_1_max_predicate_100.train.jsonl +3 -0
- data/{t_rex.filter_unified.min_entity_12_max_predicate_25.test.jsonl → t_rex.filter_unified.min_entity_1_max_predicate_100.validation.jsonl} +2 -2
- data/t_rex.filter_unified.min_entity_1_max_predicate_25.jsonl +3 -0
- data/t_rex.filter_unified.min_entity_1_max_predicate_25.train.jsonl +3 -0
- data/t_rex.filter_unified.min_entity_1_max_predicate_25.validation.jsonl +3 -0
- data/t_rex.filter_unified.min_entity_1_max_predicate_50.jsonl +3 -0
- data/t_rex.filter_unified.min_entity_1_max_predicate_50.train.jsonl +3 -0
- data/t_rex.filter_unified.min_entity_1_max_predicate_50.validation.jsonl +3 -0
- data/t_rex.filter_unified.min_entity_2_max_predicate_10.jsonl +3 -0
- data/t_rex.filter_unified.min_entity_2_max_predicate_10.train.jsonl +3 -0
- data/t_rex.filter_unified.min_entity_2_max_predicate_10.validation.jsonl +3 -0
- data/t_rex.filter_unified.min_entity_2_max_predicate_100.jsonl +3 -0
.gitattributes
CHANGED
@@ -144,3 +144,40 @@ data/t_rex.filter_unified.min_entity_4_max_predicate_25.train.jsonl filter=lfs d
|
|
144 |
data/t_rex.filter_unified.min_entity_12_max_predicate_100.train.jsonl filter=lfs diff=lfs merge=lfs -text
|
145 |
data/t_rex.filter_unified.min_entity_16_max_predicate_50.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
146 |
data/t_rex.filter_unified.min_entity_12_max_predicate_10.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
data/t_rex.filter_unified.min_entity_12_max_predicate_100.train.jsonl filter=lfs diff=lfs merge=lfs -text
|
145 |
data/t_rex.filter_unified.min_entity_16_max_predicate_50.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
146 |
data/t_rex.filter_unified.min_entity_12_max_predicate_10.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
147 |
+
data/t_rex.filter_unified.min_entity_1_max_predicate_100.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
148 |
+
data/t_rex.filter_unified.min_entity_1_max_predicate_50.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
149 |
+
data/t_rex.filter_unified.min_entity_2_max_predicate_25.train.jsonl filter=lfs diff=lfs merge=lfs -text
|
150 |
+
data/t_rex.filter_unified.min_entity_2_max_predicate_50.train.jsonl filter=lfs diff=lfs merge=lfs -text
|
151 |
+
data/t_rex.filter_unified.min_entity_1_max_predicate_100.train.jsonl filter=lfs diff=lfs merge=lfs -text
|
152 |
+
data/t_rex.filter_unified.min_entity_1_max_predicate_25.jsonl filter=lfs diff=lfs merge=lfs -text
|
153 |
+
data/t_rex.filter_unified.min_entity_2_max_predicate_50.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
154 |
+
data/t_rex.filter_unified.min_entity_3_max_predicate_25.jsonl filter=lfs diff=lfs merge=lfs -text
|
155 |
+
data/t_rex.filter_unified.min_entity_3_max_predicate_50.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
156 |
+
data/t_rex.filter_unified.min_entity_1_max_predicate_10.train.jsonl filter=lfs diff=lfs merge=lfs -text
|
157 |
+
data/t_rex.filter_unified.min_entity_1_max_predicate_25.train.jsonl filter=lfs diff=lfs merge=lfs -text
|
158 |
+
data/t_rex.filter_unified.min_entity_1_max_predicate_50.train.jsonl filter=lfs diff=lfs merge=lfs -text
|
159 |
+
data/t_rex.filter_unified.min_entity_2_max_predicate_25.jsonl filter=lfs diff=lfs merge=lfs -text
|
160 |
+
data/t_rex.filter_unified.min_entity_1_max_predicate_100.jsonl filter=lfs diff=lfs merge=lfs -text
|
161 |
+
data/t_rex.filter_unified.min_entity_2_max_predicate_100.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
162 |
+
data/t_rex.filter_unified.min_entity_2_max_predicate_50.jsonl filter=lfs diff=lfs merge=lfs -text
|
163 |
+
data/t_rex.filter_unified.min_entity_3_max_predicate_10.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
164 |
+
data/t_rex.filter_unified.min_entity_3_max_predicate_100.train.jsonl filter=lfs diff=lfs merge=lfs -text
|
165 |
+
data/t_rex.filter_unified.min_entity_2_max_predicate_10.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
166 |
+
data/t_rex.filter_unified.min_entity_2_max_predicate_25.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
167 |
+
data/t_rex.filter_unified.min_entity_3_max_predicate_100.jsonl filter=lfs diff=lfs merge=lfs -text
|
168 |
+
data/t_rex.filter_unified.min_entity_3_max_predicate_25.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
169 |
+
data/t_rex.filter_unified.min_entity_3_max_predicate_50.jsonl filter=lfs diff=lfs merge=lfs -text
|
170 |
+
data/t_rex.filter_unified.min_entity_1_max_predicate_50.jsonl filter=lfs diff=lfs merge=lfs -text
|
171 |
+
data/t_rex.filter_unified.min_entity_2_max_predicate_10.jsonl filter=lfs diff=lfs merge=lfs -text
|
172 |
+
data/t_rex.filter_unified.min_entity_3_max_predicate_10.train.jsonl filter=lfs diff=lfs merge=lfs -text
|
173 |
+
data/t_rex.filter_unified.min_entity_1_max_predicate_25.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
174 |
+
data/t_rex.filter_unified.min_entity_1_max_predicate_10.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
175 |
+
data/t_rex.filter_unified.min_entity_2_max_predicate_100.train.jsonl filter=lfs diff=lfs merge=lfs -text
|
176 |
+
data/t_rex.filter_unified.min_entity_3_max_predicate_10.jsonl filter=lfs diff=lfs merge=lfs -text
|
177 |
+
data/t_rex.filter_unified.min_entity_3_max_predicate_25.train.jsonl filter=lfs diff=lfs merge=lfs -text
|
178 |
+
data/t_rex.filter_unified.min_entity_3_max_predicate_50.train.jsonl filter=lfs diff=lfs merge=lfs -text
|
179 |
+
data/t_rex.filter_unified.test.jsonl filter=lfs diff=lfs merge=lfs -text
|
180 |
+
data/t_rex.filter_unified.min_entity_1_max_predicate_10.jsonl filter=lfs diff=lfs merge=lfs -text
|
181 |
+
data/t_rex.filter_unified.min_entity_2_max_predicate_100.jsonl filter=lfs diff=lfs merge=lfs -text
|
182 |
+
data/t_rex.filter_unified.min_entity_3_max_predicate_100.validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
183 |
+
data/t_rex.filter_unified.min_entity_2_max_predicate_10.train.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -16,26 +16,30 @@ pretty_name: t_rex
|
|
16 |
|
17 |
## Dataset Summary
|
18 |
This is the T-REX dataset proposed in [https://aclanthology.org/L18-1544/](https://aclanthology.org/L18-1544/).
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
25 |
-
|
26 |
-
| filter_unified.
|
27 |
-
| filter_unified.
|
28 |
-
| filter_unified.
|
29 |
-
| filter_unified.
|
30 |
-
| filter_unified.
|
31 |
-
| filter_unified.
|
32 |
-
| filter_unified.
|
33 |
-
| filter_unified.
|
34 |
-
| filter_unified.
|
35 |
-
| filter_unified.
|
36 |
-
| filter_unified.
|
37 |
-
| filter_unified.
|
38 |
-
| filter_unified.
|
|
|
|
|
|
|
|
|
39 |
|
40 |
### Filtering to Remove Noise
|
41 |
|
@@ -95,7 +99,24 @@ An example looks as follows.
|
|
95 |
}
|
96 |
```
|
97 |
|
98 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
```
|
100 |
@inproceedings{elsahar2018t,
|
101 |
title={T-rex: A large scale alignment of natural language with knowledge base triples},
|
|
|
16 |
|
17 |
## Dataset Summary
|
18 |
This is the T-REX dataset proposed in [https://aclanthology.org/L18-1544/](https://aclanthology.org/L18-1544/).
|
19 |
+
The test split is universal across different version, which is manually checked by the author of [relbert/t_rex](https://huggingface.co/datasets/relbert/t_rex),
|
20 |
+
and the test split contains predicates that is not included in the train/validation split.
|
21 |
+
The train/validation splits are created for each configuration by the ratio of 9:1.
|
22 |
+
The number of triples in test split is 121, and train/validation is summarized in the table below.
|
23 |
+
|
24 |
+
| data | train | validation | total |
|
25 |
+
|:----------------------------------------------|:--------|-------------:|:--------|
|
26 |
+
| filter_unified.min_entity_1_max_predicate_100 | 7,075 | 787 | 7,862 |
|
27 |
+
| filter_unified.min_entity_1_max_predicate_50 | 4,131 | 459 | 4,590 |
|
28 |
+
| filter_unified.min_entity_1_max_predicate_25 | 2,358 | 262 | 2,620 |
|
29 |
+
| filter_unified.min_entity_1_max_predicate_10 | 1,134 | 127 | 1,261 |
|
30 |
+
| filter_unified.min_entity_2_max_predicate_100 | 4,873 | 542 | 5,415 |
|
31 |
+
| filter_unified.min_entity_2_max_predicate_50 | 3,002 | 334 | 3,336 |
|
32 |
+
| filter_unified.min_entity_2_max_predicate_25 | 1,711 | 191 | 1,902 |
|
33 |
+
| filter_unified.min_entity_2_max_predicate_10 | 858 | 96 | 954 |
|
34 |
+
| filter_unified.min_entity_3_max_predicate_100 | 3,659 | 407 | 4,066 |
|
35 |
+
| filter_unified.min_entity_3_max_predicate_50 | 2,336 | 260 | 2,596 |
|
36 |
+
| filter_unified.min_entity_3_max_predicate_25 | 1,390 | 155 | 1,545 |
|
37 |
+
| filter_unified.min_entity_3_max_predicate_10 | 689 | 77 | 766 |
|
38 |
+
| filter_unified.min_entity_4_max_predicate_100 | 2,995 | 333 | 3,328 |
|
39 |
+
| filter_unified.min_entity_4_max_predicate_50 | 1,989 | 222 | 2,211 |
|
40 |
+
| filter_unified.min_entity_4_max_predicate_25 | 1,221 | 136 | 1,357 |
|
41 |
+
| filter_unified.min_entity_4_max_predicate_10 | 603 | 68 | 671 |
|
42 |
+
|
43 |
|
44 |
### Filtering to Remove Noise
|
45 |
|
|
|
99 |
}
|
100 |
```
|
101 |
|
102 |
+
## Reproduce the Dataset
|
103 |
+
|
104 |
+
```shell
|
105 |
+
git clone https://huggingface.co/datasets/relbert/t_rex
|
106 |
+
cd t_rex
|
107 |
+
mkdir data_raw
|
108 |
+
cd data_raw
|
109 |
+
cd data_raw
|
110 |
+
wget https://figshare.com/ndownloader/files/8760241
|
111 |
+
unzip 8760241
|
112 |
+
cd ../
|
113 |
+
python process.py
|
114 |
+
python unify_predicate.py
|
115 |
+
python filtering_purify.py
|
116 |
+
python create_split.py
|
117 |
+
```
|
118 |
+
|
119 |
+
## Citation Information
|
120 |
```
|
121 |
@inproceedings{elsahar2018t,
|
122 |
title={T-rex: A large scale alignment of natural language with knowledge base triples},
|
check_split.py
CHANGED
@@ -3,7 +3,7 @@ from itertools import product
|
|
3 |
|
4 |
import pandas as pd
|
5 |
|
6 |
-
parameters_min_e_freq = [
|
7 |
parameters_max_p_freq = [100, 50, 25, 10]
|
8 |
|
9 |
stats = []
|
@@ -12,15 +12,16 @@ for min_e_freq, max_p_freq in product(parameters_min_e_freq, parameters_max_p_fr
|
|
12 |
train = [json.loads(i) for i in f.read().split('\n') if len(i) > 0]
|
13 |
with open(f"data/t_rex.filter_unified.min_entity_{min_e_freq}_max_predicate_{max_p_freq}.validation.jsonl") as f:
|
14 |
validation = [json.loads(i) for i in f.read().split('\n') if len(i) > 0]
|
15 |
-
with open(f"data/t_rex.filter_unified.min_entity_{min_e_freq}_max_predicate_{max_p_freq}.test.jsonl") as f:
|
16 |
-
test = [json.loads(i) for i in f.read().split('\n') if len(i) > 0]
|
17 |
stats.append({
|
18 |
"data": f"filter_unified.min_entity_{min_e_freq}_max_predicate_{max_p_freq}",
|
19 |
"train": len(train),
|
20 |
-
"validation": len(validation)
|
21 |
-
"test": len(test)
|
22 |
})
|
23 |
|
24 |
df = pd.DataFrame(stats)
|
25 |
-
df['total'] = df['train'] + df['validation']
|
26 |
-
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
import pandas as pd
|
5 |
|
6 |
+
parameters_min_e_freq = [1, 2, 3, 4]
|
7 |
parameters_max_p_freq = [100, 50, 25, 10]
|
8 |
|
9 |
stats = []
|
|
|
12 |
train = [json.loads(i) for i in f.read().split('\n') if len(i) > 0]
|
13 |
with open(f"data/t_rex.filter_unified.min_entity_{min_e_freq}_max_predicate_{max_p_freq}.validation.jsonl") as f:
|
14 |
validation = [json.loads(i) for i in f.read().split('\n') if len(i) > 0]
|
|
|
|
|
15 |
stats.append({
|
16 |
"data": f"filter_unified.min_entity_{min_e_freq}_max_predicate_{max_p_freq}",
|
17 |
"train": len(train),
|
18 |
+
"validation": len(validation)
|
|
|
19 |
})
|
20 |
|
21 |
df = pd.DataFrame(stats)
|
22 |
+
df['total'] = df['train'] + df['validation']
|
23 |
+
df.loc[:, 'total'] = df['total'].map('{:,d}'.format)
|
24 |
+
df.loc[:, 'train'] = df['train'].map('{:,d}'.format)
|
25 |
+
df.loc[:, 'validation'] = df['validation'].map('{:,d}'.format)
|
26 |
+
|
27 |
+
print(df.to_markdown(index=False))
|
create_split.py
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import json
|
2 |
+
import os
|
3 |
+
from itertools import product
|
4 |
+
|
5 |
+
import pandas as pd
|
6 |
+
from random import shuffle, seed
|
7 |
+
|
8 |
+
|
9 |
+
parameters_min_e_freq = [1, 2, 3, 4]
|
10 |
+
parameters_max_p_freq = [100, 50, 25, 10]
|
11 |
+
|
12 |
+
|
13 |
+
def get_test_predicate(_data):
|
14 |
+
tmp_df = pd.DataFrame(_data)
|
15 |
+
predicates_count = tmp_df.groupby("predicate")['text'].count().sort_values(ascending=False).to_dict()
|
16 |
+
total_num = sum(predicates_count.values())
|
17 |
+
pre_k = list(predicates_count.keys())
|
18 |
+
seed(42)
|
19 |
+
shuffle(pre_k)
|
20 |
+
predicates_train = []
|
21 |
+
for k in pre_k:
|
22 |
+
predicates_train.append(k)
|
23 |
+
if sum([predicates_count[i] for i in predicates_train]) > total_num * 0.8:
|
24 |
+
break
|
25 |
+
predicates_test = sorted([i for i in pre_k if i not in predicates_train])
|
26 |
+
return predicates_test
|
27 |
+
|
28 |
+
|
29 |
+
if not os.path.exists("data/t_rex.filter_unified.test.jsonl"):
|
30 |
+
with open(f"data/t_rex.filter_unified.min_entity_{max(parameters_min_e_freq)}_max_predicate_{min(parameters_max_p_freq)}.jsonl") as f:
|
31 |
+
data = [json.loads(i) for i in f.read().split('\n') if len(i) > 0]
|
32 |
+
pred_test = get_test_predicate(data)
|
33 |
+
data_test = [i for i in data if i['predicate'] in pred_test]
|
34 |
+
f_writer = open("data/t_rex.filter_unified.test.jsonl", 'w')
|
35 |
+
for n, i in enumerate(data_test):
|
36 |
+
print(f"\n[{n+1}/{len(data_test)}]")
|
37 |
+
print(f"{json.dumps(i, indent=4)}")
|
38 |
+
flag = input(">>> (enter to add to test)")
|
39 |
+
if flag == '':
|
40 |
+
f_writer.write(json.dumps(i) + '\n')
|
41 |
+
f_writer.close()
|
42 |
+
|
43 |
+
with open("data/t_rex.filter_unified.test.jsonl") as f:
|
44 |
+
data_test = [json.loads(i) for i in f.read().split('\n') if len(i) > 0]
|
45 |
+
test_predicate = set([i['predicate'] for i in data_test])
|
46 |
+
|
47 |
+
|
48 |
+
seed(42)
|
49 |
+
for min_e_freq, max_p_freq in product(parameters_min_e_freq, parameters_max_p_freq):
|
50 |
+
with open(f"data/t_rex.filter_unified.min_entity_{min_e_freq}_max_predicate_{max_p_freq}.jsonl") as f:
|
51 |
+
data = [json.loads(i) for i in f.read().split('\n') if len(i) > 0]
|
52 |
+
data = [i for i in data if i['predicate'] not in test_predicate]
|
53 |
+
shuffle(data)
|
54 |
+
data_train = data[:int(len(data) * 0.9)]
|
55 |
+
data_valid = data[int(len(data) * 0.9):]
|
56 |
+
with open(f"data/t_rex.filter_unified.min_entity_{min_e_freq}_max_predicate_{max_p_freq}.train.jsonl", "w") as f:
|
57 |
+
f.write('\n'.join([json.dumps(i) for i in data_train]))
|
58 |
+
with open(f"data/t_rex.filter_unified.min_entity_{min_e_freq}_max_predicate_{max_p_freq}.validation.jsonl", "w") as f:
|
59 |
+
f.write('\n'.join([json.dumps(i) for i in data_valid]))
|
60 |
+
|
61 |
+
|
62 |
+
#
|
63 |
+
# # make test split
|
64 |
+
# with open(f"data/t_rex.filter_unified.jsonl") as f:
|
65 |
+
# data = [json.loads(i) for i in f.read().split('\n') if len(i) > 0]
|
66 |
+
# train_data, validation_data, test_data = create_split(data)
|
data/stats.data_size.csv
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b44d88a51f7716796f4b94b4fe85fc86baca83120570a6222fef6a4bc3b3992d
|
3 |
+
size 126
|
data/stats.entity_distribution.png
CHANGED
Git LFS Details
|
Git LFS Details
|
data/stats.predicate_distribution.png
CHANGED
Git LFS Details
|
Git LFS Details
|
data/stats.predicate_size.csv
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
min entity,10
|
|
|
|
|
|
|
2 |
4,193
|
3 |
-
8,168
|
4 |
-
12,146
|
5 |
-
16,123
|
|
|
1 |
min entity,10
|
2 |
+
1,246
|
3 |
+
2,229
|
4 |
+
3,208
|
5 |
4,193
|
|
|
|
|
|
data/{t_rex.filter_unified.min_entity_12_max_predicate_10.test.jsonl → t_rex.filter_unified.min_entity_12_max_predicate_10.jsonl}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c7bfe4b76ce52b209edfe71079017187cc87a3b974f2d2b5bd1802356f01c678
|
3 |
+
size 768926
|
data/{t_rex.filter_unified.min_entity_12_max_predicate_10.train.jsonl → t_rex.filter_unified.min_entity_12_max_predicate_100.jsonl}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f5be4dfeffcd964091e5614cc864e236185d72920914bc926c1afd4a898ec491
|
3 |
+
size 2528350
|
data/t_rex.filter_unified.min_entity_12_max_predicate_100.train.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:5c45541638cb3b42e2c411aecf38939ede5552a645e954c75baf1c7baf5a658c
|
3 |
-
size 6286055
|
|
|
|
|
|
|
|
data/{t_rex.filter_unified.min_entity_12_max_predicate_100.test.jsonl → t_rex.filter_unified.min_entity_12_max_predicate_25.jsonl}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6e19a6a0ac839ce7cb124463b62ad8e5ab33b922624283316831ca468265933a
|
3 |
+
size 1270693
|
data/t_rex.filter_unified.min_entity_12_max_predicate_25.train.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:4b9019a5e8b6b79bbc919b2936d29058c0658a2f7f5fa6cb3314be2162d0c23a
|
3 |
-
size 2482459
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_12_max_predicate_25.validation.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:b0a02d8781c989d7705408c5c1f269e64917b478ed517d72efe7a53d8df1ccdf
|
3 |
-
size 263631
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_12_max_predicate_50.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7ea4d6abb6ae5fb28dfac19790c98c20c2da1fa4f97f75086fc65e3bf998c3fc
|
3 |
+
size 1826322
|
data/t_rex.filter_unified.min_entity_12_max_predicate_50.test.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:66db43c1c2e7fad14426d54b4a707341dcb79d3f3ad6f6af22715912dfd38f7c
|
3 |
-
size 1077375
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_12_max_predicate_50.train.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:2083fefccf114f306dca79c808d5569ded033c7e2078d18f04f8536379b07bdc
|
3 |
-
size 4104068
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_12_max_predicate_50.validation.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:ef68969f8ed4bd0347028cce316b77ed289c6d93e2fffeedd01280e68364d40c
|
3 |
-
size 430247
|
|
|
|
|
|
|
|
data/{t_rex.filter_unified.min_entity_12_max_predicate_100.validation.jsonl → t_rex.filter_unified.min_entity_16_max_predicate_10.jsonl}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5a50e4f8b497961231106cec5a7a5ec3cdd2899f056e5891c1eca94e26aefcff
|
3 |
+
size 638213
|
data/t_rex.filter_unified.min_entity_16_max_predicate_10.test.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:0e7e4ccf2ef97aa0f2bac9e221048ddd9bb40dc50f7ce898bcef0fc12ae88341
|
3 |
-
size 321942
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_16_max_predicate_10.train.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:754c9e06049675fbe1e3bbc7f434e2cd5aa06cae3623bf0ebf427af552a6af31
|
3 |
-
size 1020306
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_16_max_predicate_10.validation.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:4b89ffd06e13e841ef86dec6a4be72ea86401c6e0a8d8d27a17b705d9059ed44
|
3 |
-
size 114671
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_16_max_predicate_100.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:818da55866b1d7091b4e896c86785aa183ef37e202bc3dc71eb96d169103f346
|
3 |
+
size 2071727
|
data/t_rex.filter_unified.min_entity_16_max_predicate_100.test.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:fbbd5b3dc6465667fc9f5b30fc4878925572704684ed0ac77c0939719dba4d24
|
3 |
-
size 1569146
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_16_max_predicate_100.train.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:81315afb488c1fa2751f0431cd7e945738528f8fc1e27fc693393f82b94a0b40
|
3 |
-
size 5626541
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_16_max_predicate_100.validation.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:dd7e501375228bad984e420b8027d0269b189020870ddeb8a8a90126586d188e
|
3 |
-
size 613277
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_16_max_predicate_25.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:50211079a43dda5e85c2acf52b7bc2c3d3f70abe3362964f3916d690d1da1ae3
|
3 |
+
size 1053742
|
data/t_rex.filter_unified.min_entity_16_max_predicate_25.test.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:fdf57cd4c02b4642ea2c6b44a8ea34b515ca8a4d5f678f1a343f2aadb9b7006b
|
3 |
-
size 611917
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_16_max_predicate_25.train.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:0a088e2d3303fff5b9f9cde255e41a4cdbe1ce23ac1af999828cc3583f770105
|
3 |
-
size 2106148
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_16_max_predicate_25.validation.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:ddda2368d7f490fbf730c1867160b72c5968f848baa71c297677713e3f36f42a
|
3 |
-
size 267230
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_16_max_predicate_50.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dd1471f5fbca5a32c0a9bded6c81b73998d3573119bfaa277bcf7283ab16c714
|
3 |
+
size 1496998
|
data/t_rex.filter_unified.min_entity_16_max_predicate_50.test.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:c1cc878ec4b1255f0a949f3cab11ac5a047885363cc04d3ea4cf77cb88575e1a
|
3 |
-
size 948458
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_16_max_predicate_50.train.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:813a32b417ae89cb5d8bd3c1e4aadfcbaddbcf488d1c557d05fd48de72c2bb16
|
3 |
-
size 3595793
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_16_max_predicate_50.validation.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:abe51abba5f0ae84931aac95c6d8bcb93ce9be0de4b954b162f0f3e3d98e3beb
|
3 |
-
size 382381
|
|
|
|
|
|
|
|
data/t_rex.filter_unified.min_entity_1_max_predicate_10.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eb46ff8b6fed3cdd5e665cba43b17687c63d8bb03b519d3b9a54103df874b9ca
|
3 |
+
size 2025494
|
data/t_rex.filter_unified.min_entity_1_max_predicate_10.train.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bc8f09b851bc4e5a559d91b2b6eab602fcd7a01d9b8b1cb5da6d25a6f955c227
|
3 |
+
size 1572501
|
data/{t_rex.filter_unified.min_entity_12_max_predicate_10.validation.jsonl → t_rex.filter_unified.min_entity_1_max_predicate_10.validation.jsonl}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2cfecf612971bc6346ee1cbf60598237d746588b49f3bf2a2d47a758043e6e8b
|
3 |
+
size 167641
|
data/t_rex.filter_unified.min_entity_1_max_predicate_100.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7a2952dac623bce4a3930c90b508c891483a68f755348f65de147ae03a5cd0dc
|
3 |
+
size 12354922
|
data/t_rex.filter_unified.min_entity_1_max_predicate_100.train.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:25e3e2bfe7ae82ae789a1ca7acbdfdf1f4f8ddecce38b2841d7eb1d59ef3b25a
|
3 |
+
size 9485883
|
data/{t_rex.filter_unified.min_entity_12_max_predicate_25.test.jsonl → t_rex.filter_unified.min_entity_1_max_predicate_100.validation.jsonl}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3cbe1dcf6a1cabccafd4741c758d77692ad036178c58cb216c9d9900ef618600
|
3 |
+
size 973661
|
data/t_rex.filter_unified.min_entity_1_max_predicate_25.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b33437d77c05bd75c51ef4a4223890b9846b14280a186c5e5acae5ec56c3944b
|
3 |
+
size 4182361
|
data/t_rex.filter_unified.min_entity_1_max_predicate_25.train.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9c131f6d16f3ac410d5a8eec498dc170fac19cb4eedb3a3b6f55ab8036d2044e
|
3 |
+
size 3261339
|
data/t_rex.filter_unified.min_entity_1_max_predicate_25.validation.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c390b61d8aba59d46860dc08c951fa41a03aa703aeced1853093875b0c256683
|
3 |
+
size 359678
|
data/t_rex.filter_unified.min_entity_1_max_predicate_50.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9ac875dcfce1b5a4a3e0761451c998b7fa0728b4104657db51b1176d25b0d1f9
|
3 |
+
size 7270621
|
data/t_rex.filter_unified.min_entity_1_max_predicate_50.train.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb18c0b4372a1f2896edea758c3664e2136305eda0beb0db46b9b0f5a5ba9a96
|
3 |
+
size 5662197
|
data/t_rex.filter_unified.min_entity_1_max_predicate_50.validation.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:13388320c2c516979d3921345402b3582ffd450fb5e207fef0564a5b94cfb0a0
|
3 |
+
size 633329
|
data/t_rex.filter_unified.min_entity_2_max_predicate_10.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b45dbe6473a8bdd3dbcdaf11bbeb2d274f466171b9c7a6c2a4338cee03e8c9cd
|
3 |
+
size 1603402
|
data/t_rex.filter_unified.min_entity_2_max_predicate_10.train.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0e50f0b2edde1889ff118c8e71a7f8926a2b645191585d51439feb29332177f2
|
3 |
+
size 1176841
|
data/t_rex.filter_unified.min_entity_2_max_predicate_10.validation.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d0850ef15867726d82a9bcd137b955dda570c6000d017232767df35cd10fabd0
|
3 |
+
size 161287
|
data/t_rex.filter_unified.min_entity_2_max_predicate_100.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f85d6226210a8c8cf0b514b8818ce8862ca8ed21d6024813157169e05fa9ba76
|
3 |
+
size 8833414
|