Fix link in docstring in wikitext function

This commit is contained in:
Ondřej Sojka 2023-12-07 14:19:55 +01:00 committed by GitHub
parent 73f0c00279
commit 22d94474a5

View File

@ -40,7 +40,9 @@ def _load(save_dir, filenames):
def wikitext(dataset="2", save_dir="/tmp"):
"""
Load the WikiText-* language modeling dataset:
https://paperswithcode.com/dataset/penn-treebank
https://paperswithcode.com/dataset/wikitext-2
https://paperswithcode.com/dataset/wikitext-103
"""
if dataset not in ("2", "103"):
raise ValueError(f'Dataset must be either "2" or "103", got {dataset}')