Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 230b784f68 | |||
| 6ce9f0469f | |||
| 6ffb395d68 | |||
| 9520341240 |
@@ -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",
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user