fix: move print
@@ -57,15 +57,13 @@ def main():
passed_gold_phrases = False
print("FOUND POSSIBLE ERROR: {} not in {}".format(pred_r[-1], true_sents))
- print(f"Acceptable skill names: `{acceptable_skill_names}`.\n"
- f"Passed acceptable skill names: `{passed_acceptable_skills}`.\n"
- f"True sentences: `{true_sents}`.\n"
- f"Passed true sentences: `{passed_gold_phrases}`.")
-
if len(acceptable_skill_names) > 0 or len(true_sents) > 0:
assert ((len(acceptable_skill_names) > 0 and passed_acceptable_skills) or (
len(true_sents) > 0 and passed_gold_phrases)), print(
- f"ERROR: see above!")
+ f"ERROR!!!\nAcceptable skill names: `{acceptable_skill_names}`.\n"
+ f"Passed acceptable skill names: `{passed_acceptable_skills}`.\n"
+ f"True sentences: `{true_sents}`.\n"
+ f"Passed true sentences: `{passed_gold_phrases}`.")
if __name__ == '__main__':
