Merge branch 'master' into spacy.io

This commit is contained in:
Ines Montani 2019-09-15 17:57:21 +02:00
commit 237a62c5d5
3 changed files with 21 additions and 5 deletions

16
spacy/lang/bg/examples.py Normal file
View File

@ -0,0 +1,16 @@
# coding: utf8
from __future__ import unicode_literals
"""
Example sentences to test spaCy and its language models.
>>> from spacy.lang.bg.examples import sentences
>>> docs = nlp.pipe(sentences)
"""
sentences = [
"Епъл иска да купи английски стартъп за 1 милиард долара."
"Автономните коли прехвърлят застрахователната отговорност към производителите."
"Сан Франциско обмисля забрана на роботи доставящи по тротоари. "
"Лондон е голям град в Обединеното Кралство."
]

View File

@ -100,11 +100,11 @@
"example": "Aceasta este o propoziție.", "example": "Aceasta este o propoziție.",
"has_examples": true "has_examples": true
}, },
{ "code": "hr", "name": "Croatian" }, { "code": "hr", "name": "Croatian", "has_examples": true },
{ "code": "tr", "name": "Turkish", "example": "Bu bir cümledir.", "has_examples": true }, { "code": "tr", "name": "Turkish", "example": "Bu bir cümledir.", "has_examples": true },
{ "code": "ca", "name": "Catalan", "example": "Això és una frase.", "has_examples": true }, { "code": "ca", "name": "Catalan", "example": "Això és una frase.", "has_examples": true },
{ "code": "he", "name": "Hebrew", "example": "זהו משפט.", "has_examples": true }, { "code": "he", "name": "Hebrew", "example": "זהו משפט.", "has_examples": true },
{ "code": "ar", "name": "Arabic", "has_examples": true }, { "code": "ar", "name": "Arabic", "example": "هذه جملة", "has_examples": true },
{ "code": "fa", "name": "Persian", "has_examples": true }, { "code": "fa", "name": "Persian", "has_examples": true },
{ "code": "ur", "name": "Urdu", "example": "یہ ایک جملہ ہے", "has_examples": true }, { "code": "ur", "name": "Urdu", "example": "یہ ایک جملہ ہے", "has_examples": true },
{ "code": "tt", "name": "Tatar", "has_examples": true }, { "code": "tt", "name": "Tatar", "has_examples": true },
@ -124,7 +124,7 @@
}, },
{ "code": "tl", "name": "Tagalog" }, { "code": "tl", "name": "Tagalog" },
{ "code": "af", "name": "Afrikaans" }, { "code": "af", "name": "Afrikaans" },
{ "code": "bg", "name": "Bulgarian" }, { "code": "bg", "name": "Bulgarian", "example": "Това е изречение", "has_examples": true },
{ "code": "cs", "name": "Czech" }, { "code": "cs", "name": "Czech" },
{ "code": "is", "name": "Icelandic" }, { "code": "is", "name": "Icelandic" },
{ "code": "lt", "name": "Lithuanian" }, { "code": "lt", "name": "Lithuanian" },

View File

@ -88,9 +88,9 @@ const QuickstartInstall = ({ id, title }) => (
</QS> </QS>
<QS package="source">pip install -r requirements.txt</QS> <QS package="source">pip install -r requirements.txt</QS>
<QS package="source">python setup.py build_ext --inplace</QS> <QS package="source">python setup.py build_ext --inplace</QS>
{models.map(({ code }) => ( {models.map(({ code, models: modelOptions }) => (
<QS models={code} key={code}> <QS models={code} key={code}>
python -m spacy download {code} python -m spacy download {modelOptions[0]}
</QS> </QS>
))} ))}
</Quickstart> </Quickstart>