Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
asahi417 commited on
Commit
2bad6a1
1 Parent(s): 8225751

Update unify_predicate.py

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