Update unify_predicate.py
Browse files- unify_predicate.py +1 -1
unify_predicate.py
CHANGED
@@ -56,5 +56,5 @@ new = pd.concat([data_filter_join, data_remain[data_filter_join.columns]])
|
|
56 |
print(f"{len(new)} triples, {len(new['predicate'].unique())} predicates")
|
57 |
|
58 |
with open(f"data/t_rex.filter_unified.jsonl", 'w') as f:
|
59 |
-
for _, i in
|
60 |
f.write(json.dumps(i.to_dict()) + '\n')
|
|
|
56 |
print(f"{len(new)} triples, {len(new['predicate'].unique())} predicates")
|
57 |
|
58 |
with open(f"data/t_rex.filter_unified.jsonl", 'w') as f:
|
59 |
+
for _, i in new.iterrows():
|
60 |
f.write(json.dumps(i.to_dict()) + '\n')
|