@staticmethod
def normalize_text(normal_text):
    ' remove extra spaces if any in the text\n         and put it in lowercase, to normalize the input text.\n        '
    normalized_text = re.sub(' +', ' ', normal_text)
    normalized_text = normalized_text.lower()
    return normalized_text
remove extra spaces if any in the text
and put it in lowercase, to normalize the input text.
@staticmethod
def normalize_text(normal_text):
    ' remove extra spaces if any in the text\n         and put it in lowercase, to normalize the input text.\n        '
    normalized_text = re.sub(' +', ' ', normal_text)
    normalized_text = normalized_text.lower()
    return normalized_text