From f9550b4493335fe9d64b4ac482e2de7d041535a4 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Fri, 4 Sep 2020 14:42:12 +0200 Subject: [PATCH] Fix components in meta.json and website [ci skip] --- spacy/language.py | 1 + website/src/templates/models.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/spacy/language.py b/spacy/language.py index 17ca020ca..3b307e3f4 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -211,6 +211,7 @@ class Language: # TODO: Adding this back to prevent breaking people's code etc., but # we should consider removing it self._meta["pipeline"] = list(self.pipe_names) + self._meta["components"] = list(self.component_names) self._meta["disabled"] = list(self.disabled) return self._meta diff --git a/website/src/templates/models.js b/website/src/templates/models.js index 1bcdd4859..afeefde64 100644 --- a/website/src/templates/models.js +++ b/website/src/templates/models.js @@ -167,6 +167,8 @@ const Model = ({ name, langId, langName, baseUrl, repo, compatibility, hasExampl const releaseUrl = `https://github.com/${repo}/releases/${releaseTag}` const pipeline = meta.pipeline && join(meta.pipeline.map(p => {p})) + const components = + meta.components && join(meta.components.map(p => {p})) const sources = formatSources(meta.sources) const author = !meta.url ? meta.author : {meta.author} const licenseUrl = licenses[meta.license] ? licenses[meta.license].url : null