lyeoni / nlp-tutorial

A list of NLP(Natural Language Processing) tutorials
MIT License
1.37k stars 264 forks source link

typo in preprocessing? #13

Open VirkSaab opened 4 years ago

VirkSaab commented 4 years ago

Hi, In cleaning function in the script : nlp-tutorial/news-category-classifcation/preprocessing.py, line 21 is written as text = re.sub(r'[!]{2,}', '?', text) # multiple ?s -> ?. There should be ? in first argument and It should be text = re.sub(r'[?]{2,}', '?', text) # multiple ?s -> ?. Am I correct?