diff --git a/torchtext/datasets/ag_news.py b/torchtext/datasets/ag_news.py index 52f424c770..a313fefbf6 100644 --- a/torchtext/datasets/ag_news.py +++ b/torchtext/datasets/ag_news.py @@ -58,7 +58,7 @@ def AG_NEWS(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[split]]) diff --git a/torchtext/datasets/amazonreviewfull.py b/torchtext/datasets/amazonreviewfull.py index c864d36317..4309657c20 100644 --- a/torchtext/datasets/amazonreviewfull.py +++ b/torchtext/datasets/amazonreviewfull.py @@ -72,7 +72,7 @@ def AmazonReviewFull(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]) diff --git a/torchtext/datasets/amazonreviewpolarity.py b/torchtext/datasets/amazonreviewpolarity.py index 9b07468112..fae53f66fb 100644 --- a/torchtext/datasets/amazonreviewpolarity.py +++ b/torchtext/datasets/amazonreviewpolarity.py @@ -69,7 +69,7 @@ def AmazonReviewPolarity(root: str, split: Union[Tuple[str], str]): # TODO Remove this after removing conditional dependency 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]) diff --git a/torchtext/datasets/cola.py b/torchtext/datasets/cola.py index 97b4bd6f77..77ab872b6c 100644 --- a/torchtext/datasets/cola.py +++ b/torchtext/datasets/cola.py @@ -69,7 +69,7 @@ def CoLA(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]) diff --git a/torchtext/datasets/conll2000chunking.py b/torchtext/datasets/conll2000chunking.py index 9daa3668f3..2bd23bfd14 100644 --- a/torchtext/datasets/conll2000chunking.py +++ b/torchtext/datasets/conll2000chunking.py @@ -61,7 +61,7 @@ def CoNLL2000Chunking(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[split]]) diff --git a/torchtext/datasets/dbpedia.py b/torchtext/datasets/dbpedia.py index 6fc763e873..1c5e00c260 100644 --- a/torchtext/datasets/dbpedia.py +++ b/torchtext/datasets/dbpedia.py @@ -68,7 +68,7 @@ def DBpedia(root: str, split: Union[Tuple[str], str]): # TODO Remove this after removing conditional dependency 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]) diff --git a/torchtext/datasets/enwik9.py b/torchtext/datasets/enwik9.py index 122840a725..b116a60f5d 100644 --- a/torchtext/datasets/enwik9.py +++ b/torchtext/datasets/enwik9.py @@ -43,7 +43,7 @@ def EnWik9(root: 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]) diff --git a/torchtext/datasets/imdb.py b/torchtext/datasets/imdb.py index c684261272..3bf29b9a9e 100644 --- a/torchtext/datasets/imdb.py +++ b/torchtext/datasets/imdb.py @@ -80,7 +80,7 @@ def IMDB(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]) diff --git a/torchtext/datasets/iwslt2016.py b/torchtext/datasets/iwslt2016.py index d7c322687a..e36ec541ee 100644 --- a/torchtext/datasets/iwslt2016.py +++ b/torchtext/datasets/iwslt2016.py @@ -212,7 +212,7 @@ def IWSLT2016( """ 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" ) if not isinstance(language_pair, list) and not isinstance(language_pair, tuple): diff --git a/torchtext/datasets/iwslt2017.py b/torchtext/datasets/iwslt2017.py index 0b4acc6fcd..abe8b811d8 100644 --- a/torchtext/datasets/iwslt2017.py +++ b/torchtext/datasets/iwslt2017.py @@ -177,7 +177,7 @@ def IWSLT2017(root=".data", split=("train", "valid", "test"), language_pair=("de """ 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" ) valid_set = "dev2010" diff --git a/torchtext/datasets/mnli.py b/torchtext/datasets/mnli.py index 9c2a3f71ad..e67d6ac338 100644 --- a/torchtext/datasets/mnli.py +++ b/torchtext/datasets/mnli.py @@ -82,7 +82,7 @@ def MNLI(root, split): # TODO Remove this after removing conditional dependency 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]) diff --git a/torchtext/datasets/mrpc.py b/torchtext/datasets/mrpc.py index 85ac94d1ba..8cc7d59568 100644 --- a/torchtext/datasets/mrpc.py +++ b/torchtext/datasets/mrpc.py @@ -60,7 +60,7 @@ def MRPC(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[split]]) diff --git a/torchtext/datasets/multi30k.py b/torchtext/datasets/multi30k.py index c426a5d26f..bcb7a7c549 100644 --- a/torchtext/datasets/multi30k.py +++ b/torchtext/datasets/multi30k.py @@ -80,7 +80,7 @@ def Multi30k(root: str, split: Union[Tuple[str], str], language_pair: Tuple[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[split]]) diff --git a/torchtext/datasets/penntreebank.py b/torchtext/datasets/penntreebank.py index 9b58ed61f3..c7b18f6726 100644 --- a/torchtext/datasets/penntreebank.py +++ b/torchtext/datasets/penntreebank.py @@ -62,7 +62,7 @@ def PennTreebank(root, 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[split]]) diff --git a/torchtext/datasets/qqp.py b/torchtext/datasets/qqp.py index 86abea4343..2e05a3bd36 100644 --- a/torchtext/datasets/qqp.py +++ b/torchtext/datasets/qqp.py @@ -40,7 +40,7 @@ def QQP(root: 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]) diff --git a/torchtext/datasets/sogounews.py b/torchtext/datasets/sogounews.py index 06ab1d6325..5a62dc9e14 100644 --- a/torchtext/datasets/sogounews.py +++ b/torchtext/datasets/sogounews.py @@ -72,7 +72,7 @@ def SogouNews(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]) diff --git a/torchtext/datasets/squad1.py b/torchtext/datasets/squad1.py index 4a8a7a2e73..2d036d0b61 100644 --- a/torchtext/datasets/squad1.py +++ b/torchtext/datasets/squad1.py @@ -55,7 +55,7 @@ def SQuAD1(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[split]]) diff --git a/torchtext/datasets/squad2.py b/torchtext/datasets/squad2.py index e2998d41d3..7999bbb0cb 100644 --- a/torchtext/datasets/squad2.py +++ b/torchtext/datasets/squad2.py @@ -56,7 +56,7 @@ def SQuAD2(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[split]]) diff --git a/torchtext/datasets/sst2.py b/torchtext/datasets/sst2.py index 4e6770beda..f695d6bfef 100644 --- a/torchtext/datasets/sst2.py +++ b/torchtext/datasets/sst2.py @@ -79,7 +79,7 @@ def SST2(root, split): # TODO Remove this after removing conditional dependency 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]) diff --git a/torchtext/datasets/stsb.py b/torchtext/datasets/stsb.py index 7c46fa3ae9..bf5976fa0d 100644 --- a/torchtext/datasets/stsb.py +++ b/torchtext/datasets/stsb.py @@ -75,7 +75,7 @@ def STSB(root, split): # TODO Remove this after removing conditional dependency 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]) diff --git a/torchtext/datasets/udpos.py b/torchtext/datasets/udpos.py index 275ee0d3ba..773e77877e 100644 --- a/torchtext/datasets/udpos.py +++ b/torchtext/datasets/udpos.py @@ -59,7 +59,7 @@ def UDPOS(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]) diff --git a/torchtext/datasets/wikitext103.py b/torchtext/datasets/wikitext103.py index d85aba3c2a..e5d9eece56 100644 --- a/torchtext/datasets/wikitext103.py +++ b/torchtext/datasets/wikitext103.py @@ -64,7 +64,7 @@ def WikiText103(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]) 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]) diff --git a/torchtext/datasets/yahooanswers.py b/torchtext/datasets/yahooanswers.py index e4f5889744..497c060465 100644 --- a/torchtext/datasets/yahooanswers.py +++ b/torchtext/datasets/yahooanswers.py @@ -68,7 +68,7 @@ def YahooAnswers(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]) diff --git a/torchtext/datasets/yelpreviewfull.py b/torchtext/datasets/yelpreviewfull.py index 4dbbfb6805..45fbbbd7ac 100644 --- a/torchtext/datasets/yelpreviewfull.py +++ b/torchtext/datasets/yelpreviewfull.py @@ -67,7 +67,7 @@ def YelpReviewFull(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]) diff --git a/torchtext/datasets/yelpreviewpolarity.py b/torchtext/datasets/yelpreviewpolarity.py index e654bb8afa..2272eaf7dd 100644 --- a/torchtext/datasets/yelpreviewpolarity.py +++ b/torchtext/datasets/yelpreviewpolarity.py @@ -67,7 +67,7 @@ def YelpReviewPolarity(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])