mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Fix linting [ci skip]
This commit is contained in:
parent
e9e8fa2466
commit
2d955fbf98
|
@ -1141,9 +1141,9 @@ class Language:
|
||||||
start_time = timer()
|
start_time = timer()
|
||||||
# tokenize the texts only for timing purposes
|
# tokenize the texts only for timing purposes
|
||||||
if not hasattr(self.tokenizer, "pipe"):
|
if not hasattr(self.tokenizer, "pipe"):
|
||||||
_ = [self.tokenizer(text) for text in texts]
|
_ = [self.tokenizer(text) for text in texts] # noqa: F841
|
||||||
else:
|
else:
|
||||||
_ = list(self.tokenizer.pipe(texts))
|
_ = list(self.tokenizer.pipe(texts)) # noqa: F841
|
||||||
for name, pipe in self.pipeline:
|
for name, pipe in self.pipeline:
|
||||||
kwargs = component_cfg.get(name, {})
|
kwargs = component_cfg.get(name, {})
|
||||||
kwargs.setdefault("batch_size", batch_size)
|
kwargs.setdefault("batch_size", batch_size)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user