Auto-format [ci skip]

This commit is contained in:
Ines Montani 2019-03-11 17:10:50 +01:00
parent b0b990e405
commit cdd418b93e
5 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -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"}