lyeoni / nlp-tutorial

A list of NLP(Natural Language Processing) tutorials

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typo in preprocessing?

VirkSaab opened this issue · comments

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?