-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yingyuankai
committed
Feb 2, 2020
1 parent
bffd121
commit e43c741
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,24 +4,24 @@ | |
# @Email : [email protected] | ||
# @File : test_glue.py | ||
|
||
import os, sys | ||
import tensorflow_datasets as tfds | ||
# import os, sys | ||
# import tensorflow_datasets as tfds | ||
import unittest | ||
|
||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||
|
||
from tensorflow_datasets.core.download import DownloadConfig | ||
|
||
from aispace.datasets import * | ||
from aispace.utils.hparams import Hparams | ||
from aispace.utils.builder_utils import load_dataset | ||
# | ||
# sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||
# | ||
# from tensorflow_datasets.core.download import DownloadConfig | ||
# | ||
# from aispace.datasets import * | ||
# from aispace.utils.hparams import Hparams | ||
# from aispace.utils.builder_utils import load_dataset | ||
|
||
|
||
class TestGlue(unittest.TestCase): | ||
def test_glue_load(self): | ||
hparams = Hparams() | ||
checksum_dir = "../aispace/datasets/url_checksums" | ||
tfds.download.add_checksums_dir(checksum_dir) | ||
# hparams = Hparams() | ||
# 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", | ||
|