import unittest from .model_runner import * from fastNLP.models.snli import ESIM class TestSNLIModel(unittest.TestCase): def test_snli(self): model = ESIM((VOCAB_SIZE, 10), num_labels=NUM_CLS, dropout_rate=0) RUNNER.run_model_with_task(NLI, model)
一款轻量级的自然语言处理(NLP)工具包,目标是减少用户项目中的工程型代码,例如数据处理循环、训练循环、多卡运行等