From eb064c59cd9feec00592719a3fc1a712c758d9aa Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 9 Jul 2020 20:24:53 +0200 Subject: [PATCH] Try to fix textcat test --- spacy/tests/pipeline/test_textcat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/pipeline/test_textcat.py b/spacy/tests/pipeline/test_textcat.py index 07d73eb6e..a39b5075b 100644 --- a/spacy/tests/pipeline/test_textcat.py +++ b/spacy/tests/pipeline/test_textcat.py @@ -84,7 +84,7 @@ def test_overfitting_IO(): # Simple test to try and quickly overfit the textcat component - ensuring the ML models work correctly fix_random_seed(0) nlp = English() - textcat = nlp.create_pipe("textcat") + textcat = nlp.create_pipe("textcat", config={"exclusive_classes": True}) train_examples = [] for text, annotations in TRAIN_DATA: train_examples.append(Example.from_dict(nlp.make_doc(text), annotations))