Skip to content

Commit

Permalink
Removed batch print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
fexfl committed Dec 26, 2024
1 parent 092369f commit f767951
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mailcom/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ def pseudonymize(self, text: str):
]
pseudonymized_batches = []
for batch in batches:
print(batch)
batch = self.concatenate(batch)
print(batch)
batch = self.pseudonymize_email_addresses(batch)
ner = self.get_ner(batch)
ps_sent = " ".join(self.pseudonymize_ne(ner, batch)) if ner else batch
Expand Down Expand Up @@ -272,7 +270,7 @@ def make_dir(path: str):
pseudonymizer = Pseudonymize()
pseudonymizer.init_spacy("fr")
pseudonymizer.init_transformers()
pseudonymizer.set_sentence_batch_size(1000)
pseudonymizer.set_sentence_batch_size(2)
for file in io.email_list:
print("Parsing input file {}".format(file))
text = io.get_text(file)
Expand Down

0 comments on commit f767951

Please sign in to comment.