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.py 452 B

123456789101112
  1. import unittest
  2. import os
  3. from fastNLP.io import MsraNERPipe, PeopleDailyPipe, WeiboNERPipe
  4. @unittest.skipIf('TRAVIS' in os.environ, "Skip in travis")
  5. class TestPipe(unittest.TestCase):
  6. def test_process_from_file(self):
  7. for pipe in [MsraNERPipe, PeopleDailyPipe, WeiboNERPipe]:
  8. with self.subTest(pipe=pipe):
  9. print(pipe)
  10. data_bundle = pipe().process_from_file()
  11. print(data_bundle)