8 lines
150 B
Python
8 lines
150 B
Python
|
import pathlib
|
||
|
import re
|
||
|
|
||
|
DATA_DIR = pathlib.Path(__file__).with_name('data')
|
||
|
|
||
|
def normalize_whitespace(s):
|
||
|
return re.sub(r'(\t| {3,})', ' ', s)
|