From 78003432511eba4459ee90a2ade303082b36211e Mon Sep 17 00:00:00 2001 From: Parmeet Singh Bhatia Date: Fri, 28 Jan 2022 15:50:31 -0500 Subject: [PATCH] fix yahoo dataset --- torchtext/datasets/yahooanswers.py | 1 - 1 file changed, 1 deletion(-) diff --git a/torchtext/datasets/yahooanswers.py b/torchtext/datasets/yahooanswers.py index 70c3d8b807..98a4824ed2 100644 --- a/torchtext/datasets/yahooanswers.py +++ b/torchtext/datasets/yahooanswers.py @@ -46,7 +46,6 @@ def YahooAnswers(root: str, split: Union[Tuple[str], str]): hash_type="md5" ) cache_compressed_dp = GDriveReader(cache_compressed_dp).end_caching(mode="wb", same_filepath_fn=True) - cache_compressed_dp = FileOpener(cache_compressed_dp, mode="b") cache_decompressed_dp = cache_compressed_dp.on_disk_cache( filepath_fn=lambda x: os.path.join(root, _EXTRACTED_FILES[split])