class_docstr: This class matches the question with one of the templates
  to extract entity substrings and define which relations
  corresponds to the question
class_docstr_tok: ["This","class","matches","the","question","with","one","of","the","templates","to","extract","entity","substrings","and","define","which","relations","corresponds","to","the","question"]
code: def sanitize(self, question: str) -> str:
      question = re.sub(r"^(a |the )", "", question)
      date_interval = re.findall("([\d]{4}-[\d]{4})", question)
      if date_interval:
          question = question.replace(date_interval[0], "")
      question = question.replace("  ", " ")
      return question
  
file_path: DeepPavlov/deeppavlov/models/kbqa/template_matcher.py
imports: import functools
  import json
  import multiprocessing
  import re
  from logging import getLogger
  from typing import Any, Tuple, List, Union
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.models.serializable import Serializable
label_desc: Use image node_id 5 for calling the TemplateMatcher obj's underlying member method code with example usage: obj.sanitize(question) and returns: question