Skip to content

Commit

Permalink
avoided csv limit
Browse files Browse the repository at this point in the history
  • Loading branch information
kocmitom committed Aug 7, 2017
1 parent e5b6e37 commit 6db04b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions neuralmonkey/readers/plain_text_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import gzip
import csv
import io
import sys

from neuralmonkey.logging import warn

Expand All @@ -10,6 +11,8 @@
PlainTextFileReader = Callable[[List[str]], Iterable[List[str]]]
# pylint: enable=invalid-name

csv.field_size_limit(sys.maxsize)


def string_reader(
encoding: str = "utf-8") -> Callable[[List[str]], Iterable[str]]:
Expand Down

0 comments on commit 6db04b1

Please sign in to comment.