Rename xx to mul in docs

This commit is contained in:
thomashacker 2022-11-09 13:53:06 +01:00
parent 432db3d299
commit 597d0a84d6
2 changed files with 4 additions and 2 deletions

View File

@ -556,6 +556,7 @@ def test_spacy_blank():
("is", "isl"), ("is", "isl"),
("pt-BR", "pt"), ("pt-BR", "pt"),
("xx", "mul"), ("xx", "mul"),
("mul", "mul"),
("zh-Hans", "zh"), ("zh-Hans", "zh"),
("zh-Hant", None), ("zh-Hant", None),
("zxx", None), ("zxx", None),
@ -579,6 +580,7 @@ def test_language_matching(lang, target):
("mo", "ro"), ("mo", "ro"),
("is", "isl"), ("is", "isl"),
("xx", "mul"), ("xx", "mul"),
("mul", "mul"),
("no", "nb"), ("no", "nb"),
("pt-BR", "pt"), ("pt-BR", "pt"),
("zh-Hans", "zh"), ("zh-Hans", "zh"),

View File

@ -83,9 +83,9 @@ import Languages from 'widgets/languages.js'
spaCy also supports pipelines trained on more than one language. This is spaCy also supports pipelines trained on more than one language. This is
especially useful for named entity recognition. The language ID used for especially useful for named entity recognition. The language ID used for
multi-language or language-neutral pipelines is `xx`. The language class, a multi-language or language-neutral pipelines is `mul`. The language class, a
generic subclass containing only the base language data, can be found in generic subclass containing only the base language data, can be found in
[`lang/xx`](%%GITHUB_SPACY/spacy/lang/xx). [`lang/mul`](%%GITHUB_SPACY/spacy/lang/mul).
To train a pipeline using the neutral multi-language class, you can set To train a pipeline using the neutral multi-language class, you can set
`lang = "mul"` in your [training config](/usage/training#config). You can also `lang = "mul"` in your [training config](/usage/training#config). You can also