Skip to content

Removed ticks (``) from the url under is_module_available #1753

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
May 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
874a2d8
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
e349a6f
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
aae434c
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
e5ef76b
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
155a97d
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
155bec4
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
109211c
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
2645584
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
9c6257f
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
72149ba
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
0ff53fc
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
c82be8d
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
6f65eab
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
59a5dcd
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
9c06ff9
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
86b6c2a
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
0489815
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
0fd7e3e
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
ccda145
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
b00b0ce
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
97da5d9
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
dfb04a1
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
cec1e4e
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
9b50d4b
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
0b67f8e
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
6961d6f
Removed ticks (``) from the url under is_module_available
suvigyajain0101 May 31, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion torchtext/datasets/ag_news.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/amazonreviewfull.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/amazonreviewpolarity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/cola.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/conll2000chunking.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/dbpedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/enwik9.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/imdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/iwslt2016.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/iwslt2017.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/mnli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/mrpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/multi30k.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/penntreebank.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/qqp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/sogounews.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/squad1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/squad2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/sst2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/stsb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/udpos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/wikitext103.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/wikitext2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/yahooanswers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/yelpreviewfull.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion torchtext/datasets/yelpreviewpolarity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down