mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-19 20:52:23 +03:00
On initialize, use just two samples
Coref docs are kind of long, and using 10 samples on a smallish GPU can cause OOMs.
This commit is contained in:
parent
251a5b43ac
commit
2d3c559dc4
|
@ -333,7 +333,7 @@ class CoreferenceResolver(TrainablePipe):
|
||||||
|
|
||||||
X = []
|
X = []
|
||||||
Y = []
|
Y = []
|
||||||
for ex in islice(get_examples(), 10):
|
for ex in islice(get_examples(), 2):
|
||||||
X.append(ex.predicted)
|
X.append(ex.predicted)
|
||||||
Y.append(ex.reference)
|
Y.append(ex.reference)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user