mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-06 21:30:22 +03:00
Apply suggestions from code review
Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
This commit is contained in:
parent
3fd19b8bd8
commit
7fe3c5e095
|
@ -1,4 +1,3 @@
|
|||
from pathlib import Path
|
||||
import pytest
|
||||
from spacy.util import get_lang_class
|
||||
from hypothesis import settings
|
||||
|
|
|
@ -1130,7 +1130,7 @@ def test_training_before_update(doc):
|
|||
def generate_batch():
|
||||
yield 1, [Example(doc, doc)]
|
||||
|
||||
nlp = spacy.blank("en", config={"training": {}})
|
||||
nlp = spacy.blank("en")
|
||||
nlp.add_pipe("tagger")
|
||||
optimizer = Adam()
|
||||
generator = train_while_improving(
|
||||
|
|
Loading…
Reference in New Issue
Block a user