mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-29 11:26:28 +03:00
Fix default transformer in quickstart generator (resolves #8018) [ci skip]
This commit is contained in:
parent
40ca23bde0
commit
77ee7c872b
|
@ -86,13 +86,14 @@ export default function QuickstartTraining({ id, title, download = 'base_config.
|
||||||
updateComponents(_components, isExclusive)
|
updateComponents(_components, isExclusive)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
const reco = GENERATOR_DATA[lang] || GENERATOR_DATA.__default__
|
const defaultData = GENERATOR_DATA.__default__
|
||||||
|
const reco = GENERATOR_DATA[lang] || defaultData
|
||||||
const content = generator({
|
const content = generator({
|
||||||
lang,
|
lang,
|
||||||
components,
|
components,
|
||||||
optimize,
|
optimize,
|
||||||
hardware,
|
hardware,
|
||||||
transformer_data: reco.transformer,
|
transformer_data: reco.transformer || defaultData.transformer,
|
||||||
word_vectors: reco.word_vectors,
|
word_vectors: reco.word_vectors,
|
||||||
has_letters: reco.has_letters,
|
has_letters: reco.has_letters,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user