Commit 179f85ea authored by PkSM3's avatar PkSM3

[BUGFIX] removing also backslashes from ngrams

parent 5160d178
...@@ -226,7 +226,7 @@ class bulk_insert: ...@@ -226,7 +226,7 @@ class bulk_insert:
def read(self, size=None): def read(self, size=None):
try: try:
return self.template % tuple( return self.template % tuple(
str(x).replace('\r', '').replace('\n', '\\n').replace('\t', '\\t') for x in next(self.iter) str(x).replace('\r', ' ').replace('\n', ' ').replace('\t', ' ').replace("\\","") for x in next(self.iter)
) )
except StopIteration: except StopIteration:
return '' return ''
......
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