Update unify_predicate.py
Browse files- unify_predicate.py +1 -1
unify_predicate.py
CHANGED
@@ -51,4 +51,4 @@ print(f"{len(data_filter_join)} triples, {len(data_filter_join['predicate'].uniq
|
|
51 |
|
52 |
with open(f"data/t_rex.filter_unified.jsonl", 'w') as f:
|
53 |
for _, i in data_filter_join.iterrows():
|
54 |
-
f.write(json.dumps(i) + '\n')
|
|
|
51 |
|
52 |
with open(f"data/t_rex.filter_unified.jsonl", 'w') as f:
|
53 |
for _, i in data_filter_join.iterrows():
|
54 |
+
f.write(json.dumps(i.to_dict()) + '\n')
|