Skip to content

Commit

Permalink
Properly skip invalid docs in normalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
markgw committed Jul 8, 2020
1 parent 8fba3d8 commit 97a0aa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/python/pimlico/modules/text/normalize/execute.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import re

from pimlico.core.modules.map import skip_invalid
from pimlico.core.modules.map.multiproc import multiprocessing_executor_factory


Expand All @@ -17,6 +18,7 @@ def worker_setup(worker):
num_re = re.compile(r"[0-9]")


@skip_invalid
def process_document(worker, archive_name, doc_name, doc):
sentences = doc.sentences

Expand Down

0 comments on commit 97a0aa6

Please sign in to comment.