mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Fix +tag-model mixin to check for length of spread arguments
This commit is contained in:
parent
3871157d84
commit
b53ed82f0f
|
@ -169,7 +169,7 @@ mixin tag()
|
||||||
|
|
||||||
mixin tag-model(...capabs)
|
mixin tag-model(...capabs)
|
||||||
- var intro = "To use this functionality, spaCy needs a model to be installed"
|
- var intro = "To use this functionality, spaCy needs a model to be installed"
|
||||||
- var ext = capabs ? " that supports the following capabilities: " + capabs.join(', ') : ""
|
- var ext = capabs.length ? " that supports the following capabilities: " + capabs.join(', ') : ""
|
||||||
+tag Requires model
|
+tag Requires model
|
||||||
+help(intro + ext + ".").u-color-theme
|
+help(intro + ext + ".").u-color-theme
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user