From fd7edbc6456a34c29bd68ea0981d83269e6be478 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Mon, 11 Oct 2021 11:17:18 +0200 Subject: [PATCH] Fix types descriptions of sm and sent models (#9401) --- website/src/templates/models.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/src/templates/models.js b/website/src/templates/models.js index 21ade5e36..554823ebf 100644 --- a/website/src/templates/models.js +++ b/website/src/templates/models.js @@ -34,6 +34,7 @@ const MODEL_META = { core_sm: 'Vocabulary, syntax, entities', dep: 'Vocabulary, syntax', ent: 'Named entities', + sent: 'Sentence boundaries', pytt: 'PyTorch Transformers', trf: 'Transformers', vectors: 'Word vectors', @@ -195,6 +196,7 @@ const Model = ({ const [isError, setIsError] = useState(true) const [meta, setMeta] = useState({}) const { type, genre, size } = getModelComponents(name) + const display_type = type === 'core' && size === 'sm' ? 'core_sm' : type const version = useMemo(() => getLatestVersion(name, compatibility, prereleases), [ name, compatibility, @@ -231,7 +233,7 @@ const Model = ({ const rows = [ { label: 'Language', tag: langId, content: langName }, - { label: 'Type', tag: type, content: MODEL_META[type] }, + { label: 'Type', tag: type, content: MODEL_META[display_type] }, { label: 'Genre', tag: genre, content: MODEL_META[genre] }, { label: 'Size', tag: size, content: meta.sizeFull }, { label: 'Components', content: components, help: MODEL_META.components },