From 84edade82d83129afe88a6df7748aab551619c38 Mon Sep 17 00:00:00 2001 From: Abhinav Sharma Date: Wed, 8 Nov 2017 13:23:08 +0530 Subject: [PATCH 1/4] Create examples.py Populated the file with the translations of English example sentences --- spacy/lang/hi/examples.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 spacy/lang/hi/examples.py diff --git a/spacy/lang/hi/examples.py b/spacy/lang/hi/examples.py new file mode 100644 index 000000000..df7e21a99 --- /dev/null +++ b/spacy/lang/hi/examples.py @@ -0,0 +1,22 @@ + # coding: utf8 +from __future__ import unicode_literals + + +""" +Example sentences to test spaCy and its language models. + +>>> from spacy.lang.en.examples import sentences +>>> docs = nlp.pipe(sentences) +""" + + +sentences = [ + "एप्पल 1 अरब डॉलर के लिए यू.के. स्टार्टअप खरीदने पर विचार कर रहा है", +     "स्वायत्त कार निर्माताओं की ओर बीमा दायित्व रखती है", +     "सैन फ्रांसिस्को फुटवे डिलीवरी रोबोटों पर प्रतिबंध लगाने का विचार कर रहा है", +     "लंदन यूनाइटेड किंगडम का बड़ा शहर है।", +     "आप कहाँ हैं?", +     "फ्रांस के राष्ट्रपति कौन हैं?", +     "संयुक्त राज्य की राजधानी क्या है?", +     "बराक ओबामा का जन्म हुआ था?" +] From c9c4aaec44478879b81111fc17ad36d6257cdc0c Mon Sep 17 00:00:00 2001 From: Abhinav Sharma Date: Wed, 8 Nov 2017 13:33:15 +0530 Subject: [PATCH 2/4] corrected a typo --- .github/CONTRIBUTOR_AGREEMENT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CONTRIBUTOR_AGREEMENT.md b/.github/CONTRIBUTOR_AGREEMENT.md index 919fb81fc..02f31d6d3 100644 --- a/.github/CONTRIBUTOR_AGREEMENT.md +++ b/.github/CONTRIBUTOR_AGREEMENT.md @@ -101,6 +101,6 @@ mark both statements: | Name | Abhinav Sharma | | Company name (if applicable) | Fourtek I.T. Solutions Pvt. Ltd. | | Title or role (if applicable) | Machine Learning Engineer | -| Date | 3 Novermber 2017 | +| Date | 3 Novmber 2017 | | GitHub username | abhi18av | | Website (optional) | https://abhi18av.github.io/ | From d097b34059994b3fdd8aa94565d692fe080b98ae Mon Sep 17 00:00:00 2001 From: Abhinav Sharma Date: Wed, 8 Nov 2017 14:16:04 +0530 Subject: [PATCH 3/4] Update CONTRIBUTOR_AGREEMENT.md --- .github/CONTRIBUTOR_AGREEMENT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CONTRIBUTOR_AGREEMENT.md b/.github/CONTRIBUTOR_AGREEMENT.md index 02f31d6d3..71a6671e9 100644 --- a/.github/CONTRIBUTOR_AGREEMENT.md +++ b/.github/CONTRIBUTOR_AGREEMENT.md @@ -101,6 +101,6 @@ mark both statements: | Name | Abhinav Sharma | | Company name (if applicable) | Fourtek I.T. Solutions Pvt. Ltd. | | Title or role (if applicable) | Machine Learning Engineer | -| Date | 3 Novmber 2017 | +| Date | 3 November 2017 | | GitHub username | abhi18av | | Website (optional) | https://abhi18av.github.io/ | From 42b241ccd02961f215b42733bc55f6c4010b0d2c Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Wed, 8 Nov 2017 11:36:38 +0100 Subject: [PATCH 4/4] Update language code in usage example in comment --- spacy/lang/hi/examples.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/lang/hi/examples.py b/spacy/lang/hi/examples.py index df7e21a99..651a76e80 100644 --- a/spacy/lang/hi/examples.py +++ b/spacy/lang/hi/examples.py @@ -5,7 +5,7 @@ from __future__ import unicode_literals """ Example sentences to test spaCy and its language models. ->>> from spacy.lang.en.examples import sentences +>>> from spacy.lang.hi.examples import sentences >>> docs = nlp.pipe(sentences) """