Skip to content

Commit

Permalink
dissmissed the special character removal (takes too long)
Browse files Browse the repository at this point in the history
  • Loading branch information
mschild committed Aug 25, 2018
1 parent bd37446 commit e11deae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Backend/utils/es_requester.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def extract_sentences(es_json, aggregate_duplicates=True):


def prepare_sentence_comparison(sentence):
return re.sub('[^A-Za-z0-9]+', '', sentence).lower()
return sentence.lower()
# return re.sub('[^A-Za-z0-9]+', '', sentence).lower()
# return ''.join(e for e in sentence if e.isalnum()).lower()


Expand Down

0 comments on commit e11deae

Please sign in to comment.