mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-07 05:40:20 +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
|
import pytest
|
||||||
from spacy.util import get_lang_class
|
from spacy.util import get_lang_class
|
||||||
from hypothesis import settings
|
from hypothesis import settings
|
||||||
|
|
|
@ -1130,7 +1130,7 @@ def test_training_before_update(doc):
|
||||||
def generate_batch():
|
def generate_batch():
|
||||||
yield 1, [Example(doc, doc)]
|
yield 1, [Example(doc, doc)]
|
||||||
|
|
||||||
nlp = spacy.blank("en", config={"training": {}})
|
nlp = spacy.blank("en")
|
||||||
nlp.add_pipe("tagger")
|
nlp.add_pipe("tagger")
|
||||||
optimizer = Adam()
|
optimizer = Adam()
|
||||||
generator = train_while_improving(
|
generator = train_while_improving(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user