From 936a29724160f403273ff3e3a3459860d7089b38 Mon Sep 17 00:00:00 2001 From: oeg Date: Wed, 19 Apr 2017 23:30:21 +0200 Subject: [PATCH 1/2] fix(model): Fix tag map for fixing issues with tag SPACE --- spacy/es/tag_map.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/es/tag_map.py b/spacy/es/tag_map.py index bdeb7250f..f0f1cd443 100644 --- a/spacy/es/tag_map.py +++ b/spacy/es/tag_map.py @@ -304,4 +304,5 @@ TAG_MAP = { "VERB__VerbForm=Ger": {"morph": "VerbForm=Ger", "pos": "VERB"}, "VERB__VerbForm=Inf": {"morph": "VerbForm=Inf", "pos": "VERB"}, "X___": {"morph": "_", "pos": "X"}, + "SP": {"morph": "_", "pos": "SPACE"}, } From f0bcd0babb1493c566c32942043ab78cebd8eb7f Mon Sep 17 00:00:00 2001 From: oeg Date: Thu, 20 Apr 2017 11:36:24 +0200 Subject: [PATCH 2/2] fix(model): Add SPACE to es tag_map. Fixing error in morphology.pyx when SP tag is missing --- spacy/es/tag_map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/es/tag_map.py b/spacy/es/tag_map.py index f0f1cd443..dce29c921 100644 --- a/spacy/es/tag_map.py +++ b/spacy/es/tag_map.py @@ -304,5 +304,5 @@ TAG_MAP = { "VERB__VerbForm=Ger": {"morph": "VerbForm=Ger", "pos": "VERB"}, "VERB__VerbForm=Inf": {"morph": "VerbForm=Inf", "pos": "VERB"}, "X___": {"morph": "_", "pos": "X"}, - "SP": {"morph": "_", "pos": "SPACE"}, + "SP": {"morph": "_", "pos": "SPACE"} }