mirror of https://github.com/explosion/spaCy.git
Add pos-row and dep-row mixins to global mixins
This commit is contained in:
parent
b1f22c5a10
commit
41c6085a6c
|
@ -285,7 +285,7 @@ mixin card-item(title, details)
|
||||||
span.u-text-small.u-color-subtle by #{details.author}
|
span.u-text-small.u-color-subtle by #{details.author}
|
||||||
|
|
||||||
|
|
||||||
//- Model row for models table
|
//- Table row for models table
|
||||||
|
|
||||||
mixin model-row(name, lang, procon, size, license, default_model, divider)
|
mixin model-row(name, lang, procon, size, license, default_model, divider)
|
||||||
- var licenses = { "CC BY-SA": "https://creativecommons.org/licenses/by-sa/3.0/", "CC BY-NC": "https://creativecommons.org/licenses/by-nc/3.0/" }
|
- var licenses = { "CC BY-SA": "https://creativecommons.org/licenses/by-sa/3.0/", "CC BY-NC": "https://creativecommons.org/licenses/by-nc/3.0/" }
|
||||||
|
@ -301,3 +301,21 @@ mixin model-row(name, lang, procon, size, license, default_model, divider)
|
||||||
+cell
|
+cell
|
||||||
if license in licenses
|
if license in licenses
|
||||||
+a(licenses[license])=license
|
+a(licenses[license])=license
|
||||||
|
|
||||||
|
|
||||||
|
//- Table rows for annotation specs
|
||||||
|
|
||||||
|
mixin pos-row(tag, pos, morph, desc)
|
||||||
|
+row
|
||||||
|
+cell #[code=tag]
|
||||||
|
+cell #[code=pos]
|
||||||
|
+cell
|
||||||
|
each m in morph.split(" ")
|
||||||
|
if m
|
||||||
|
| #[code=m]
|
||||||
|
+cell.u-text-small=desc
|
||||||
|
|
||||||
|
mixin dep-row(label, desc)
|
||||||
|
+row
|
||||||
|
+cell #[code=label]
|
||||||
|
+cell=desc
|
||||||
|
|
Loading…
Reference in New Issue