j-js commited on
Commit
19bee64
Β·
verified Β·
1 Parent(s): cabb78f

Update question_support_loader.py

Browse files
Files changed (1) hide show
  1. question_support_loader.py +1 -1
question_support_loader.py CHANGED
@@ -25,7 +25,7 @@ class QuestionSupportBank:
25
  cleaned = cleaned.replace("’", "'").replace("β€œ", '"').replace("”", '"')
26
  cleaned = cleaned.replace("βˆ’", "-").replace("–", "-")
27
  cleaned = re.sub(r"\s+", " ", cleaned)
28
- cleaned = re.sub(r"\s*([=+\-*/:,;()])\s*", r"", cleaned)
29
  return cleaned.strip()
30
 
31
  def _tokenize(self, text: Optional[str]) -> List[str]:
 
25
  cleaned = cleaned.replace("’", "'").replace("β€œ", '"').replace("”", '"')
26
  cleaned = cleaned.replace("βˆ’", "-").replace("–", "-")
27
  cleaned = re.sub(r"\s+", " ", cleaned)
28
+ cleaned = re.sub(r"\s*([=+\-*/:,;()])\s*", r"\1", cleaned)
29
  return cleaned.strip()
30
 
31
  def _tokenize(self, text: Optional[str]) -> List[str]: