mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-28 19:06:33 +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)
|
||||
},
|
||||
}
|
||||
const reco = GENERATOR_DATA[lang] || GENERATOR_DATA.__default__
|
||||
const defaultData = GENERATOR_DATA.__default__
|
||||
const reco = GENERATOR_DATA[lang] || defaultData
|
||||
const content = generator({
|
||||
lang,
|
||||
components,
|
||||
optimize,
|
||||
hardware,
|
||||
transformer_data: reco.transformer,
|
||||
transformer_data: reco.transformer || defaultData.transformer,
|
||||
word_vectors: reco.word_vectors,
|
||||
has_letters: reco.has_letters,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user