mirror of https://github.com/explosion/spaCy.git
Set batch size in begin_training
This commit is contained in:
parent
1f7709e9a6
commit
7734cbc34d
|
@ -449,7 +449,7 @@ cdef class Parser:
|
||||||
if component is self:
|
if component is self:
|
||||||
break
|
break
|
||||||
if hasattr(component, "pipe"):
|
if hasattr(component, "pipe"):
|
||||||
doc_sample = list(component.pipe(doc_sample))
|
doc_sample = list(component.pipe(doc_sample, batch_size=8))
|
||||||
else:
|
else:
|
||||||
doc_sample = [component(doc) for doc in doc_sample]
|
doc_sample = [component(doc) for doc in doc_sample]
|
||||||
if doc_sample:
|
if doc_sample:
|
||||||
|
|
Loading…
Reference in New Issue