def test_example_batch(nlp: Language, example_gold): texts, golds = zip(*example_gold) optim = nlp.resume_training() nlp.update(texts, golds, optim)
def test_update(nlp: Language, label_type): if label_type == "irex": pytest.skip("label type mismatch") optim = nlp.resume_training() nlp.update(*zip(*TESTCASE_ENE), optim)