From ac0659422d2f884fd41c20759fb6443975d225ae Mon Sep 17 00:00:00 2001 From: ontocord Date: Sun, 6 Mar 2022 13:43:15 -0500 Subject: [PATCH] Update faker_manager.py --- faker_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faker_manager.py b/faker_manager.py index e4f0d9f..2a8b893 100644 --- a/faker_manager.py +++ b/faker_manager.py @@ -466,7 +466,7 @@ def augment_anonymize(sentence, lang_id, ner, tag_type={'IP_ADDRESS', 'KEY', 'ID sentence2 = sentence2.replace(ent, " "*len(ent)) new_ner3.sort(key=lambda a: a[1]) - return sentence, new_ner3, context + return sentence, [tuple(a) for a in new_ner3], context if __name__ == "__main__": if True: