Oysiyl commited on
Commit
78510b3
1 Parent(s): 5f411a7

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +3 -3
handler.py CHANGED
@@ -36,12 +36,12 @@ class EndpointHandler():
36
 
37
  @staticmethod
38
  def remove_special_characters_s(text: Text) -> Text:
39
- chars_to_remove_regex = '[\-\…\–\"\“\%\‘\”\�\»\«\„\`\'́]'
40
  # remove special characters
41
  text = re.sub(chars_to_remove_regex, '', text)
42
- text = re.sub("՚", "'", text)
43
  text = re.sub("’", "'", text)
44
- text = re.sub(r'ы', 'и', text)
45
  text = text.lower()
46
  return text
47
 
 
36
 
37
  @staticmethod
38
  def remove_special_characters_s(text: Text) -> Text:
39
+ chars_to_remove_regex = '[\=\´\–\“\”\…\=]'
40
  # remove special characters
41
  text = re.sub(chars_to_remove_regex, '', text)
42
+ text = re.sub("", "'", text)
43
  text = re.sub("’", "'", text)
44
+ text = re.sub("´", "'", text)
45
  text = text.lower()
46
  return text
47