Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
asahi417 commited on
Commit
34852cd
1 Parent(s): 52291e5

Update create_split.py

Browse files
Files changed (1) hide show
  1. create_split.py +3 -3
create_split.py CHANGED
@@ -63,6 +63,6 @@ with open(f"data/t_rex.filter_unified.min_entity_5.validation.jsonl", "w") as f:
63
  df_train = pd.DataFrame(data_train)
64
  df_valid = pd.DataFrame(data_valid)
65
  df_test = pd.DataFrame(data_test)
66
- print(f"[train]: {len(df_train)} triples, {len(df_train['predicate'].unique())}")
67
- print(f"[validation]: {len(df_valid)} triples, {len(df_valid['predicate'].unique())}")
68
- print(f"[test]: {len(df_test)} triples, {len(df_test['predicate'].unique())}")
 
63
  df_train = pd.DataFrame(data_train)
64
  df_valid = pd.DataFrame(data_valid)
65
  df_test = pd.DataFrame(data_test)
66
+ print(f"[train]: {len(df_train)} triples, {len(df_train['relation'].unique())}")
67
+ print(f"[validation]: {len(df_valid)} triples, {len(df_valid['relation'].unique())}")
68
+ print(f"[test]: {len(df_test)} triples, {len(df_test['relation'].unique())}")