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_conll_loader.py 714 B

123456789101112131415161718192021
  1. import unittest
  2. import os
  3. from fastNLP.io.loader.conll import MsraNERLoader, PeopleDailyNERLoader, WeiboNERLoader
  4. class MSRANERTest(unittest.TestCase):
  5. @unittest.skipIf('TRAVIS' in os.environ, "Skip in travis")
  6. def test_download(self):
  7. MsraNERLoader().download(re_download=False)
  8. data_bundle = MsraNERLoader().load()
  9. print(data_bundle)
  10. class PeopleDailyTest(unittest.TestCase):
  11. @unittest.skipIf('TRAVIS' in os.environ, "Skip in travis")
  12. def test_download(self):
  13. PeopleDailyNERLoader().download()
  14. class WeiboNERTest(unittest.TestCase):
  15. @unittest.skipIf('TRAVIS' in os.environ, "Skip in travis")
  16. def test_download(self):
  17. WeiboNERLoader().download()