Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
asahi417 commited on
Commit
8e24b9b
1 Parent(s): 7755823

Update unify_predicate.py

Browse files
Files changed (1) hide show
  1. 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')