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 bffd121 commit e43c741
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tests/test_glue_zh.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@
# @Email : yingyuankai@aliyun.com
# @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",
Expand Down

0 comments on commit e43c741

Please sign in to comment.