From 229ee9fc2c8f97a54f6eceaf6410d4bda3af0039 Mon Sep 17 00:00:00 2001 From: Parmeet Singh Bhatia Date: Sat, 29 Jan 2022 23:22:08 -0500 Subject: [PATCH] revert the BC breaking change in enwik9 data --- torchtext/datasets/enwik9.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchtext/datasets/enwik9.py b/torchtext/datasets/enwik9.py index 4534c64138..9304d2afb6 100644 --- a/torchtext/datasets/enwik9.py +++ b/torchtext/datasets/enwik9.py @@ -50,4 +50,4 @@ def EnWik9(root: str, split: Union[Tuple[str], str]): ) data_dp = FileOpener(cache_decompressed_dp, mode="b") - return data_dp.readlines(decode=True, return_path=False) + return data_dp.readlines(decode=True, return_path=False, strip_newline=False)