Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
yingyuankai committed Feb 2, 2020
1 parent 98f1818 commit bffd121
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions tests/test_glue_zh.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,10 @@ def test_glue_load(self):
checksum_dir = "../aispace/datasets/url_checksums"
tfds.download.add_checksums_dir(checksum_dir)
# download_config = DownloadConfig(register_checksums=False)
tnews = tfds.load("glue_zh/tnews",
# data_dir="/search/data1/yyk/data/datasets/glue_zh",
data_dir="../data/glue_zh",
builder_kwargs={'hparams': hparams},
# download_and_prepare_kwargs={'download_config': download_config}
)
for item in tnews['test']:
print()
# print(item["context"].numpy().decode("utf8"))
# print(item["question"].numpy().decode("utf8"))
print(item["sentence"].numpy().decode("utf8"))
print(item)
break
# tnews = tfds.load("glue_zh/tnews",
# # data_dir="/search/data1/yyk/data/datasets/glue_zh",
# data_dir="../data/glue_zh",
# builder_kwargs={'hparams': hparams},
# # download_and_prepare_kwargs={'download_config': download_config}
# )
print()

0 comments on commit bffd121

Please sign in to comment.