Skip to content

Commit

Permalink
changed default number of processes to prevent bug on MacOS and pytho…
Browse files Browse the repository at this point in the history
…n 3.8
  • Loading branch information
Alexandre Landeau authored and Alexandre Landeau committed May 12, 2023
1 parent eee133d commit b91eb8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python-lib/spacy_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ class MultilingualTokenizer:

DEFAULT_BATCH_SIZE = 1000
MAX_NUM_CHARACTERS = 10 ** 7
DEFAULT_NUM_PROCESS = 2
# Set to 1 to prevent pickling issues when spawning multiple processes on MacOS
DEFAULT_NUM_PROCESS = 1
DEFAULT_FILTER_TOKEN_ATTRIBUTES = {
"is_space": "Whitespace",
"is_punct": "Punctuation",
Expand Down

0 comments on commit b91eb8e

Please sign in to comment.