From 422a10147777944a05187327a232db115e440bd8 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sun, 19 Mar 2017 11:43:33 +0100 Subject: [PATCH 1/5] Update README.rst --- README.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index b33e7dbec..7a4639b90 100644 --- a/README.rst +++ b/README.rst @@ -316,7 +316,8 @@ and ``--model`` are optional and enable additional tests: =========== ============== =========== Version Date Description =========== ============== =========== -`v1.7.0`_ ``2017-03-17`` New 50 MB model, CLI, better downloads and lots of bug fixes +`v1.7.1`_ ``2017-03-19`` Fix data download for system installation +`v1.7.0`_ ``2017-03-18`` New 50 MB model, CLI, better downloads and lots of bug fixes `v1.6.0`_ ``2017-01-16`` Improvements to tokenizer and tests `v1.5.0`_ ``2016-12-27`` Alpha support for Swedish and Hungarian `v1.4.0`_ ``2016-12-18`` Improved language data and alpha Dutch support @@ -342,6 +343,7 @@ Version Date Description `v0.93`_ ``2015-09-22`` Bug fixes to word vectors =========== ============== =========== +.. _v1.7.1: https://github.com/explosion/spaCy/releases/tag/v1.7.1 .. _v1.7.0: https://github.com/explosion/spaCy/releases/tag/v1.7.0 .. _v1.6.0: https://github.com/explosion/spaCy/releases/tag/v1.6.0 .. _v1.5.0: https://github.com/explosion/spaCy/releases/tag/v1.5.0 From 5712da6095594360be9010b0fe6b85606ec1e2d0 Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 19 Mar 2017 11:47:56 +0100 Subject: [PATCH 2/5] Add regression test for #891 --- spacy/tests/regression/test_issue891.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 spacy/tests/regression/test_issue891.py diff --git a/spacy/tests/regression/test_issue891.py b/spacy/tests/regression/test_issue891.py new file mode 100644 index 000000000..b5fa8bf12 --- /dev/null +++ b/spacy/tests/regression/test_issue891.py @@ -0,0 +1,12 @@ +# coding: utf8 +from __future__ import unicode_literals + +import pytest + +@pytest.mark.xfail +@pytest.mark.parametrize('text', ["want/need"]) +def test_issue891(en_tokenizer, text): + """Test that / infixes are split correctly.""" + tokens = en_tokenizer(text) + assert len(tokens) == 3 + assert tokens[1].text == "/" From fe0ff00fe1522497e507fc4334172ed0c2be7f22 Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 19 Mar 2017 11:55:37 +0100 Subject: [PATCH 3/5] Fix spacing --- spacy/tests/regression/test_issue891.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/tests/regression/test_issue891.py b/spacy/tests/regression/test_issue891.py index b5fa8bf12..b1bec3d25 100644 --- a/spacy/tests/regression/test_issue891.py +++ b/spacy/tests/regression/test_issue891.py @@ -3,6 +3,7 @@ from __future__ import unicode_literals import pytest + @pytest.mark.xfail @pytest.mark.parametrize('text', ["want/need"]) def test_issue891(en_tokenizer, text): From b8f8d5d8bfa049341a47fb489f20317c3b6acc56 Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 19 Mar 2017 11:57:13 +0100 Subject: [PATCH 4/5] Make sure model_path is a Posix path Otherwise, formatting the success message with model_path.as_posix() fails when using a local path for linking (linking still works, but the error message is confusing) --- spacy/cli/link.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/cli/link.py b/spacy/cli/link.py index 6df78b81d..0f28187b3 100644 --- a/spacy/cli/link.py +++ b/spacy/cli/link.py @@ -28,6 +28,7 @@ def link_package(package_name, link_name, force=False): def symlink(model_path, link_name, force): + model_path = Path(model_path) if not Path(model_path).exists(): util.sys_exit( "The data should be located in {p}".format(p=model_path), From ef5e261387fb67685db8f1397fba72524ab99ea6 Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 19 Mar 2017 12:49:40 +0100 Subject: [PATCH 5/5] Add spacy_api project by @kootenpv to showcase --- website/docs/usage/_data.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/docs/usage/_data.json b/website/docs/usage/_data.json index 39a52f274..b0857762b 100644 --- a/website/docs/usage/_data.json +++ b/website/docs/usage/_data.json @@ -116,6 +116,11 @@ "title": "Showcase", "libraries": { + "spacy_api": { + "url": "https://github.com/kootenpv/spacy_api", + "author": "Pascal van Kooten", + "description": "Server/client to load models in a separate, dedicated process." + }, "spacy-nlp": { "url": "https://github.com/kengz/spacy-nlp", "author": "Wah Loon Keng",