Sort languages alphabetically [ci skip]

This commit is contained in:
Ines Montani 2018-11-26 15:37:53 +01:00
parent 98fe1ab259
commit c80c20e1ec

View File

@ -31,13 +31,13 @@ p
nlp = spacy.blank('fi') # blank instance nlp = spacy.blank('fi') # blank instance
+table(["Language", "Code", "Language data"]) +table(["Language", "Code", "Language data"])
for lang, code in LANGUAGES - var sorted_langs = Object.assign({}, ...Object.keys(LANGUAGES).filter(key => !MODELS[key]).sort().map(key => ({ [key]: LANGUAGES[key] })))
if !Object.keys(MODELS).includes(code) for lang, code in sorted_langs
+row +row
+cell #{LANGUAGES[code]} +cell #{LANGUAGES[code]}
+cell #[code=code] +cell #[code=code]
+cell +cell
+src(gh("spaCy", "spacy/lang/" + code)) #[code lang/#{code}] +src(gh("spaCy", "spacy/lang/" + code)) #[code lang/#{code}]
+infobox("Dependencies") +infobox("Dependencies")
.o-block-small Some language tokenizers require external dependencies. .o-block-small Some language tokenizers require external dependencies.