mirror of https://github.com/explosion/spaCy.git
Auto-format [ci skip]
This commit is contained in:
parent
b0b990e405
commit
cdd418b93e
|
@ -16,6 +16,7 @@ class HebrewDefaults(Language.Defaults):
|
||||||
stop_words = STOP_WORDS
|
stop_words = STOP_WORDS
|
||||||
writing_system = {"direction": "rtl", "has_case": False, "has_letters": True}
|
writing_system = {"direction": "rtl", "has_case": False, "has_letters": True}
|
||||||
|
|
||||||
|
|
||||||
class Hebrew(Language):
|
class Hebrew(Language):
|
||||||
lang = "he"
|
lang = "he"
|
||||||
Defaults = HebrewDefaults
|
Defaults = HebrewDefaults
|
||||||
|
|
|
@ -16,6 +16,7 @@ class ChineseDefaults(Language.Defaults):
|
||||||
stop_words = STOP_WORDS
|
stop_words = STOP_WORDS
|
||||||
writing_system = {"direction": "ltr", "has_case": False, "has_letters": False}
|
writing_system = {"direction": "ltr", "has_case": False, "has_letters": False}
|
||||||
|
|
||||||
|
|
||||||
class Chinese(Language):
|
class Chinese(Language):
|
||||||
lang = "zh"
|
lang = "zh"
|
||||||
Defaults = ChineseDefaults # override defaults
|
Defaults = ChineseDefaults # override defaults
|
||||||
|
|
|
@ -328,12 +328,10 @@ A tuple of tokens coordinated to `span.root`.
|
||||||
> assert [t.text for t in apples_conjuncts] == [u"oranges"]
|
> assert [t.text for t in apples_conjuncts] == [u"oranges"]
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
| ---------- | ------- | -------------------- |
|
| ----------- | ------- | ----------------------- |
|
||||||
| **RETURNS** | `tuple` | The coordinated tokens. |
|
| **RETURNS** | `tuple` | The coordinated tokens. |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Span.lefts {#lefts tag="property" model="parser"}
|
## Span.lefts {#lefts tag="property" model="parser"}
|
||||||
|
|
||||||
Tokens that are to the left of the span, whose heads are within the span.
|
Tokens that are to the left of the span, whose heads are within the span.
|
||||||
|
|
|
@ -221,8 +221,8 @@ A tuple of coordinated tokens, not including the token itself.
|
||||||
> assert [t.text for t in apples_conjuncts] == [u"oranges"]
|
> assert [t.text for t in apples_conjuncts] == [u"oranges"]
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
| ---------- | ------- | -------------------- |
|
| ----------- | ------- | ----------------------- |
|
||||||
| **RETURNS** | `tuple` | The coordinated tokens. |
|
| **RETURNS** | `tuple` | The coordinated tokens. |
|
||||||
|
|
||||||
## Token.children {#children tag="property" model="parser"}
|
## Token.children {#children tag="property" model="parser"}
|
||||||
|
|
Loading…
Reference in New Issue