This commit is contained in:
bwt09
2022-06-05 14:48:41 -07:00
parent 3a611f8279
commit 272ceeb28e

View File

@@ -23,7 +23,7 @@ def main(result_dir, n_present=20):
weighted_ent_tuples = json.load(open(
f'{result_dir}/{rel}/ent_tuples.json'))
if len(weighted_ent_tuples):
if len(weighted_ent_tuples) == 0:
print(f'outputs of relation \"{rel}\" not found. skipped.')
continue
weighted_ent_tuples = \