fix(lstm): No space

parent 2fa47a6a
...@@ -28,7 +28,7 @@ def clean_text(lines): ...@@ -28,7 +28,7 @@ def clean_text(lines):
In dataset preparation step, we will first perform text cleaning of the data In dataset preparation step, we will first perform text cleaning of the data
which includes removal of punctuations and lower casing all the words. which includes removal of punctuations and lower casing all the words.
""" """
lines = " ".join(v for v in lines if v not in string.punctuation).lower() lines = "".join(v for v in lines if v not in string.punctuation).lower()
lines = lines.encode("utf8").decode("ascii", 'ignore') lines = lines.encode("utf8").decode("ascii", 'ignore')
return lines return lines
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment