From 1e341a2e521289b8376e55831231871379b31605 Mon Sep 17 00:00:00 2001 From: Suvigya Jain <42478893+suvigyajain0101@users.noreply.github.com> Date: Sat, 28 May 2022 10:09:56 +0100 Subject: [PATCH] Removed ticks (``) from the url under is_module_available Ticks can result in re-direction to 'https://github.com/pytorch/data%60' instead of 'https://github.com/pytorch/data', which is not a valid resource. Tested in Colab. --- torchtext/datasets/wikitext2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchtext/datasets/wikitext2.py b/torchtext/datasets/wikitext2.py index 4e7828d937..a6ba1aac4f 100644 --- a/torchtext/datasets/wikitext2.py +++ b/torchtext/datasets/wikitext2.py @@ -64,7 +64,7 @@ def WikiText2(root: str, split: Union[Tuple[str], str]): """ if not is_module_available("torchdata"): raise ModuleNotFoundError( - "Package `torchdata` not found. Please install following instructions at `https://github.com/pytorch/data`" + "Package `torchdata` not found. Please install following instructions at https://github.com/pytorch/data" ) url_dp = IterableWrapper([URL])