diff --git a/spacy/lang/he/__init__.py b/spacy/lang/he/__init__.py index 0ad65a0b4..411cdf107 100644 --- a/spacy/lang/he/__init__.py +++ b/spacy/lang/he/__init__.py @@ -16,6 +16,7 @@ class HebrewDefaults(Language.Defaults): stop_words = STOP_WORDS writing_system = {"direction": "rtl", "has_case": False, "has_letters": True} + class Hebrew(Language): lang = "he" Defaults = HebrewDefaults diff --git a/spacy/lang/zh/__init__.py b/spacy/lang/zh/__init__.py index 708e446ba..773bbcf38 100644 --- a/spacy/lang/zh/__init__.py +++ b/spacy/lang/zh/__init__.py @@ -16,6 +16,7 @@ class ChineseDefaults(Language.Defaults): stop_words = STOP_WORDS writing_system = {"direction": "ltr", "has_case": False, "has_letters": False} + class Chinese(Language): lang = "zh" Defaults = ChineseDefaults # override defaults diff --git a/spacy/util.py b/spacy/util.py index 137d466d5..7a36fe958 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -48,7 +48,7 @@ def lang_class_is_loaded(lang): """ global LANGUAGES return lang in LANGUAGES - + def get_lang_class(lang): """Import and load a Language class. diff --git a/website/docs/api/span.md b/website/docs/api/span.md index 5445f13df..43924a2b5 100644 --- a/website/docs/api/span.md +++ b/website/docs/api/span.md @@ -328,12 +328,10 @@ A tuple of tokens coordinated to `span.root`. > assert [t.text for t in apples_conjuncts] == [u"oranges"] > ``` -| Name | Type | Description | -| ---------- | ------- | -------------------- | +| Name | Type | Description | +| ----------- | ------- | ----------------------- | | **RETURNS** | `tuple` | The coordinated tokens. | - - ## Span.lefts {#lefts tag="property" model="parser"} Tokens that are to the left of the span, whose heads are within the span. diff --git a/website/docs/api/token.md b/website/docs/api/token.md index 6981f0fc7..aa55d97c1 100644 --- a/website/docs/api/token.md +++ b/website/docs/api/token.md @@ -221,8 +221,8 @@ A tuple of coordinated tokens, not including the token itself. > assert [t.text for t in apples_conjuncts] == [u"oranges"] > ``` -| Name | Type | Description | -| ---------- | ------- | -------------------- | +| Name | Type | Description | +| ----------- | ------- | ----------------------- | | **RETURNS** | `tuple` | The coordinated tokens. | ## Token.children {#children tag="property" model="parser"}