From 780b86934548661817813612debd50964b2e37d3 Mon Sep 17 00:00:00 2001 From: adrianeboyd Date: Thu, 14 May 2020 16:51:03 +0200 Subject: [PATCH] Fix syntax iterators for Persian (#5437) --- spacy/lang/fa/__init__.py | 2 ++ spacy/tests/lang/fa/__init__.py | 0 2 files changed, 2 insertions(+) create mode 100644 spacy/tests/lang/fa/__init__.py diff --git a/spacy/lang/fa/__init__.py b/spacy/lang/fa/__init__.py index 9d85f814a..c93bca671 100644 --- a/spacy/lang/fa/__init__.py +++ b/spacy/lang/fa/__init__.py @@ -10,6 +10,7 @@ from .lex_attrs import LEX_ATTRS from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .tag_map import TAG_MAP from .punctuation import TOKENIZER_SUFFIXES +from .syntax_iterators import SYNTAX_ITERATORS class PersianDefaults(Language.Defaults): @@ -24,6 +25,7 @@ class PersianDefaults(Language.Defaults): tag_map = TAG_MAP suffixes = TOKENIZER_SUFFIXES writing_system = {"direction": "rtl", "has_case": False, "has_letters": True} + syntax_iterators = SYNTAX_ITERATORS class Persian(Language): diff --git a/spacy/tests/lang/fa/__init__.py b/spacy/tests/lang/fa/__init__.py new file mode 100644 index 000000000..e69de29bb