Skip to content

Commit 6a14f06

Browse files
authored
Merge pull request #512 from ufal/csv_limit
Avoiding csv limit
2 parents e5b6e37 + 6db04b1 commit 6a14f06

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

neuralmonkey/readers/plain_text_reader.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import gzip
33
import csv
44
import io
5+
import sys
56

67
from neuralmonkey.logging import warn
78

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

14+
csv.field_size_limit(sys.maxsize)
15+
1316

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

0 commit comments

Comments
 (0)