mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-21 17:41:59 +03:00
fix: apply black
This commit is contained in:
parent
72e5d6aef4
commit
7a65b493bc
|
@ -1269,8 +1269,10 @@ class Language:
|
|||
"No 'get_examples' callback provided to 'Language.initialize', creating dummy examples"
|
||||
)
|
||||
doc = Doc(self.vocab, words=["x", "y", "z"])
|
||||
|
||||
def get_examples():
|
||||
return [Example.from_dict(doc, {})]
|
||||
|
||||
if not hasattr(get_examples, "__call__"):
|
||||
err = Errors.E930.format(
|
||||
method="Language.initialize", obj=type(get_examples)
|
||||
|
|
Loading…
Reference in New Issue
Block a user