Update create_split.py
Browse files- 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['
|
67 |
-
print(f"[validation]: {len(df_valid)} triples, {len(df_valid['
|
68 |
-
print(f"[test]: {len(df_test)} triples, {len(df_test['
|
|
|
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())}")
|