Skip to content

Commit

Permalink
Merge pull request #512 from ufal/csv_limit
Browse files Browse the repository at this point in the history
Avoiding csv limit
  • Loading branch information
kocmitom authored Aug 8, 2017
2 parents e5b6e37 + 6db04b1 commit 6a14f06
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 6a14f06

Please sign in to comment.