Skip to content

Commit

Permalink
Update faker_manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
huu4ontocord authored Mar 6, 2022
1 parent 12487f0 commit ac06594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faker_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ac06594

Please sign in to comment.