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:
Paul O'Leary McCann 2021-07-03 18:43:03 +09:00
parent 251a5b43ac
commit 2d3c559dc4

View File

@ -333,7 +333,7 @@ class CoreferenceResolver(TrainablePipe):
X = []
Y = []
for ex in islice(get_examples(), 10):
for ex in islice(get_examples(), 2):
X.append(ex.predicted)
Y.append(ex.reference)