mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Sort languages alphabetically [ci skip]
This commit is contained in:
parent
98fe1ab259
commit
c80c20e1ec
|
@ -31,13 +31,13 @@ p
|
|||
nlp = spacy.blank('fi') # blank instance
|
||||
|
||||
+table(["Language", "Code", "Language data"])
|
||||
for lang, code in LANGUAGES
|
||||
if !Object.keys(MODELS).includes(code)
|
||||
+row
|
||||
+cell #{LANGUAGES[code]}
|
||||
+cell #[code=code]
|
||||
+cell
|
||||
+src(gh("spaCy", "spacy/lang/" + code)) #[code lang/#{code}]
|
||||
- var sorted_langs = Object.assign({}, ...Object.keys(LANGUAGES).filter(key => !MODELS[key]).sort().map(key => ({ [key]: LANGUAGES[key] })))
|
||||
for lang, code in sorted_langs
|
||||
+row
|
||||
+cell #{LANGUAGES[code]}
|
||||
+cell #[code=code]
|
||||
+cell
|
||||
+src(gh("spaCy", "spacy/lang/" + code)) #[code lang/#{code}]
|
||||
|
||||
+infobox("Dependencies")
|
||||
.o-block-small Some language tokenizers require external dependencies.
|
||||
|
|
Loading…
Reference in New Issue
Block a user