Skip to content

Commit

Permalink
Merge pull request #267 from tofunlp/fix/scitldr-typo-cache-name
Browse files Browse the repository at this point in the history
fixed typoe, cache file path for scitldr dataset.
  • Loading branch information
yasufumy authored Nov 21, 2021
2 parents 59ec3d2 + 3144ce7 commit faba7b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lineflow/datasets/scitldr.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_scitldr(mode: str = "a") -> Dict[str, Any]:
url = {
"a": "https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-A/{}.jsonl",
"aic": "https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-AIC/{}.jsonl",
"full": "https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-FullText/{}.json",
"full": "https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-FullText/{}.jsonl",
}[mode]

root = download.get_cache_directory(os.path.join("datasets", "scitldr"))
Expand All @@ -36,7 +36,7 @@ def loader(path):
with open(path, "rb") as _f:
return pickle.load(_f)

pkl_path = os.path.join(root, "scitldr.pkl")
pkl_path = os.path.join(root, f"scitldr_{mode}.pkl")
return download.cache_or_load_file(pkl_path, creator, loader)


Expand Down

0 comments on commit faba7b0

Please sign in to comment.