You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_qa_loader.py 420 B

1234567891011121314
  1. import unittest
  2. from fastNLP.io.loader.qa import CMRC2018Loader
  3. class TestCMRC2018Loader(unittest.TestCase):
  4. def test__load(self):
  5. loader = CMRC2018Loader()
  6. dataset = loader._load('test/data_for_tests/io/cmrc/train.json')
  7. print(dataset)
  8. def test_load(self):
  9. loader = CMRC2018Loader()
  10. data_bundle = loader.load('test/data_for_tests/io/cmrc/')
  11. print(data_bundle)