Tristan Thrush commited on
Commit
b747688
1 Parent(s): ed574be

used multiprocess instead of multiprocessing to fix weird mac os issue

Browse files
Files changed (1) hide show
  1. wikipedia.py +3 -3
wikipedia.py CHANGED
@@ -24,7 +24,7 @@ import re
24
  import xml.etree.cElementTree as etree
25
  from urllib.parse import quote
26
  import mwparserfromhell
27
- from multiprocessing import Process, Manager
28
  from tqdm import tqdm
29
 
30
  import datasets
@@ -1049,9 +1049,9 @@ class Wikipedia(datasets.GeneratorBasedBuilder):
1049
  for example in examples:
1050
  if example is not None:
1051
  yield example
1052
-
1053
 
1054
-
 
1055
 
1056
  def _parse_and_clean_wikicode(raw_content, parser, language):
1057
  """Strips formatting and unwanted sections from raw page content."""
 
24
  import xml.etree.cElementTree as etree
25
  from urllib.parse import quote
26
  import mwparserfromhell
27
+ from multiprocess import Process, Manager
28
  from tqdm import tqdm
29
 
30
  import datasets
 
1049
  for example in examples:
1050
  if example is not None:
1051
  yield example
 
1052
 
1053
+
1054
+
1055
 
1056
  def _parse_and_clean_wikicode(raw_content, parser, language):
1057
  """Strips formatting and unwanted sections from raw page content."""