2017-10-03 15:20:13 +03:00
|
|
|
|
//- 💫 INCLUDES > MODELS PAGE TEMPLATE
|
|
|
|
|
|
|
|
|
|
for id in CURRENT_MODELS
|
|
|
|
|
+section(id)
|
|
|
|
|
+grid("vcenter").o-no-block(id=id)
|
|
|
|
|
+grid-col("two-thirds")
|
|
|
|
|
+h(2)
|
|
|
|
|
+a("#" + id).u-permalink=id
|
|
|
|
|
|
|
|
|
|
+grid-col("third").u-text-right
|
|
|
|
|
.u-color-subtle.u-text-tiny
|
|
|
|
|
+button(gh("spacy-models") + "/releases", true, "secondary", "small")(data-tpl=id data-tpl-key="download")
|
|
|
|
|
| Release details
|
|
|
|
|
.u-padding-small Latest: #[code(data-tpl=id data-tpl-key="version") n/a]
|
|
|
|
|
|
|
|
|
|
+aside-code("Installation", "bash", "$").
|
|
|
|
|
spacy download #{id}
|
|
|
|
|
|
|
|
|
|
- var comps = getModelComponents(id)
|
|
|
|
|
|
|
|
|
|
p(data-tpl=id data-tpl-key="description")
|
|
|
|
|
|
2017-10-30 18:16:19 +03:00
|
|
|
|
div(data-tpl=id data-tpl-key="error")
|
2017-10-03 15:20:13 +03:00
|
|
|
|
+infobox
|
|
|
|
|
| Unable to load model details from GitHub. To find out more
|
|
|
|
|
| about this model, see the overview of the
|
|
|
|
|
| #[+a(gh("spacy-models") + "/releases") latest model releases].
|
|
|
|
|
|
2017-10-29 05:58:19 +03:00
|
|
|
|
+table.o-block-small(data-tpl=id data-tpl-key="table")
|
2017-10-03 15:20:13 +03:00
|
|
|
|
+row
|
|
|
|
|
+cell #[+label Language]
|
|
|
|
|
+cell #[+tag=comps.lang] #{LANGUAGES[comps.lang]}
|
|
|
|
|
for comp, label in {"Type": comps.type, "Genre": comps.genre}
|
|
|
|
|
+row
|
|
|
|
|
+cell #[+label=label]
|
|
|
|
|
+cell #[+tag=comp] #{MODEL_META[comp]}
|
|
|
|
|
+row
|
|
|
|
|
+cell #[+label Size]
|
|
|
|
|
+cell #[+tag=comps.size] #[span(data-tpl=id data-tpl-key="size") #[em n/a]]
|
|
|
|
|
|
2017-10-25 17:15:37 +03:00
|
|
|
|
each label in ["Pipeline", "Vectors", "Sources", "Author", "License"]
|
2017-10-03 15:20:13 +03:00
|
|
|
|
- var field = label.toLowerCase()
|
2017-11-02 22:04:13 +03:00
|
|
|
|
if field == "vectors"
|
|
|
|
|
- field = "vecs"
|
2017-10-03 15:20:13 +03:00
|
|
|
|
+row
|
|
|
|
|
+cell.u-nowrap
|
|
|
|
|
+label=label
|
|
|
|
|
if MODEL_META[field]
|
|
|
|
|
| #[+help(MODEL_META[field]).u-color-subtle]
|
|
|
|
|
+cell
|
|
|
|
|
span(data-tpl=id data-tpl-key=field) #[em n/a]
|
|
|
|
|
|
2017-11-05 18:06:50 +03:00
|
|
|
|
+row(data-tpl=id data-tpl-key="compat-wrapper" hidden="")
|
2017-10-03 15:20:13 +03:00
|
|
|
|
+cell
|
|
|
|
|
+label Compat #[+help("Latest compatible model version for your spaCy installation").u-color-subtle]
|
|
|
|
|
+cell
|
|
|
|
|
.o-field.u-float-left
|
|
|
|
|
select.o-field__select.u-text-small(data-tpl=id data-tpl-key="compat")
|
2017-10-30 16:07:42 +03:00
|
|
|
|
div(data-tpl=id data-tpl-key="compat-versions")
|
2017-10-03 15:20:13 +03:00
|
|
|
|
|
2017-11-05 18:06:50 +03:00
|
|
|
|
section(data-tpl=id data-tpl-key="benchmarks" hidden="")
|
2017-10-29 05:58:19 +03:00
|
|
|
|
+grid.o-block-small
|
|
|
|
|
for keys, label in MODEL_BENCHMARKS
|
2017-11-05 18:06:50 +03:00
|
|
|
|
.u-flex-full.u-padding-small(data-tpl=id data-tpl-key=label.toLowerCase() hidden="")
|
2017-10-29 05:58:19 +03:00
|
|
|
|
+table.o-block-small
|
|
|
|
|
+row("head")
|
|
|
|
|
+head-cell(colspan="2")=(MODEL_META["benchmark_" + label] || label)
|
|
|
|
|
for label, field in keys
|
2017-11-05 18:06:50 +03:00
|
|
|
|
+row(hidden="")
|
2017-10-29 05:58:19 +03:00
|
|
|
|
+cell.u-nowrap
|
|
|
|
|
+label=label
|
|
|
|
|
if MODEL_META[field]
|
|
|
|
|
| #[+help(MODEL_META[field]).u-color-subtle]
|
|
|
|
|
+cell.u-text-right(data-tpl=id data-tpl-key=field)
|
|
|
|
|
| n/a
|
2017-10-03 15:20:13 +03:00
|
|
|
|
|
|
|
|
|
p.u-text-small.u-color-dark(data-tpl=id data-tpl-key="notes")
|