From f0bdfb44714ef09c92fb837b9ad22e40996a2feb Mon Sep 17 00:00:00 2001 From: ines Date: Wed, 8 Nov 2017 16:24:27 +0100 Subject: [PATCH] Fix vector listing for core sm models in list overview (see #1513) --- website/models/_data.json | 1 + website/usage/_models/_available-models.jade | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/website/models/_data.json b/website/models/_data.json index a477747df..00c126fc6 100644 --- a/website/models/_data.json +++ b/website/models/_data.json @@ -52,6 +52,7 @@ "MODEL_META": { "core": "Vocabulary, syntax, entities, vectors", + "core_sm": "Vocabulary, syntax, entities", "dep": "Vocabulary, syntax", "ent": "Named entities", "vectors": "Word vectors", diff --git a/website/usage/_models/_available-models.jade b/website/usage/_models/_available-models.jade index 80cd9aedd..3a5e318d0 100644 --- a/website/usage/_models/_available-models.jade +++ b/website/usage/_models/_available-models.jade @@ -10,9 +10,10 @@ p for models, lang in MODELS for model, i in models - var comps = getModelComponents(model) + - var type = comps.size == "sm" && comps.type == "core" ? "core_sm" : comps.type +row +cell #[+a("/models/" + lang + "#" + model) #[code=model]] if i == 0 +icon("star", 16).o-icon--inline.u-color-theme +cell #{LANGUAGES[comps.lang]} - +cell #{MODEL_META[comps.type]} + +cell #{MODEL_META[type]}