fork(1) download
  1. import re
  2.  
  3. words=[]
  4. for sent in sentences:
  5. m = re.search(r'(.*)"(.*)"', sent)
  6. before = sent
  7. if m:
  8. before, after = m.groups()
  9. words.extend([nltk.word_tokenize(before), after])
  10. else:
  11. words.append(nltk.word_tokenize(sent))
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "/usr/lib/python3.7/py_compile.py", line 143, in compile
    _optimize=optimize)
  File "<frozen importlib._bootstrap_external>", line 791, in source_to_code
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "./prog.py", line 9
    words.extend([nltk.word_tokenize(before), after])
                                                    ^
TabError: inconsistent use of tabs and spaces in indentation

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.7/py_compile.py", line 147, in compile
    raise py_exc
py_compile.PyCompileError: Sorry: TabError: inconsistent use of tabs and spaces in indentation (prog.py, line 9)
stdout
Standard output is empty