(text)
return text
normalize spaces in a string.
normalize spaces in a string.
normalize spaces in a string .
def pre_proc(text):
    '''normalize spaces in a string.'''
    text = re.sub('\s+', ' ', text)
    return text
def pre_proc ( text ) : text = re . sub ( '\s+' , ' ' , text ) return text