Compare commits

...

4 Commits

Author SHA1 Message Date
Ines Montani 230b784f68 Merge branch 'v2.x' into v2.spacy.io 2021-03-03 23:13:40 +11:00
Ines Montani 6ce9f0469f Merge pull request #7261 from adrianeboyd/docs/v2-model-details
Limit to v2 models on v2.spacy.io
2021-03-03 23:12:59 +11:00
Adriane Boyd 6ffb395d68 Limit to v2 models on v2.spacy.io 2021-03-03 09:34:45 +01:00
Ines Montani 9520341240 Enable legacy 2021-02-01 11:49:23 +11:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
"slogan": "Industrial-strength Natural Language Processing in Python",
"siteUrl": "https://v2.spacy.io",
"domain": "v2.spacy.io",
"legacy": false,
"legacy": true,
"codeBranch": "v2.x",
"email": "contact@explosion.ai",
"company": "Explosion AI",
+1 -1
View File
@@ -68,7 +68,7 @@ function isStableVersion(v) {
function getLatestVersion(modelId, compatibility) {
for (let [version, models] of Object.entries(compatibility)) {
if (isStableVersion(version) && models[modelId]) {
if (version.startsWith('2.') && isStableVersion(version) && models[modelId]) {
const modelVersions = models[modelId]
for (let modelVersion of modelVersions) {
if (isStableVersion(modelVersion)) {