mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-12 07:15:48 +03:00
Add kwargs to Corpus.dev_dataset to match train_dataset
This commit is contained in:
parent
59098a5f62
commit
7d329cd1ac
|
@ -76,7 +76,7 @@ class Corpus:
|
|||
random.shuffle(examples)
|
||||
yield from examples
|
||||
|
||||
def dev_dataset(self, nlp):
|
||||
def dev_dataset(self, nlp, **kwargs):
|
||||
ref_docs = self.read_docbin(nlp.vocab, self.walk_corpus(self.train_loc))
|
||||
examples = self.make_examples(nlp, ref_docs, **kwargs)
|
||||
yield from examples
|
||||
|
|
Loading…
Reference in New Issue
Block a user