From 96867a24aec5a1bc2378c5237612e520c51ec196 Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 4 Jun 2017 22:36:40 +0200 Subject: [PATCH] Fix typo --- spacy/tests/regression/test_issue910.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/tests/regression/test_issue910.py b/spacy/tests/regression/test_issue910.py index cc6610e0d..e7f360273 100644 --- a/spacy/tests/regression/test_issue910.py +++ b/spacy/tests/regression/test_issue910.py @@ -79,7 +79,8 @@ def test_issue910(EN, train_data, additional_entity_types): 2) There's no way to set the learning rate for the weight update, so we end up out-of-scale, causing it to learn too fast. ''' - doc = EN(u"I am looking for a restaurant in Berlin") + nlp = EN + doc = nlp(u"I am looking for a restaurant in Berlin") ents_before_train = [(ent.label_, ent.text) for ent in doc.ents] # Fine tune the ner model for entity_type in additional_entity_types: