mirror of https://github.com/explosion/spaCy.git
Backslash fixes in docs (#12213)
* backslash fixes * revert unrelated change
This commit is contained in:
parent
02af17a5c8
commit
4c60afb946
|
@ -37,7 +37,7 @@ Construct a `Doc` object. The most common way to get a `Doc` object is via the
|
||||||
| `words` | A list of strings or integer hash values to add to the document as words. ~~Optional[List[Union[str,int]]]~~ |
|
| `words` | A list of strings or integer hash values to add to the document as words. ~~Optional[List[Union[str,int]]]~~ |
|
||||||
| `spaces` | A list of boolean values indicating whether each word has a subsequent space. Must have the same length as `words`, if specified. Defaults to a sequence of `True`. ~~Optional[List[bool]]~~ |
|
| `spaces` | A list of boolean values indicating whether each word has a subsequent space. Must have the same length as `words`, if specified. Defaults to a sequence of `True`. ~~Optional[List[bool]]~~ |
|
||||||
| _keyword-only_ | |
|
| _keyword-only_ | |
|
||||||
| `user\_data` | Optional extra data to attach to the Doc. ~~Dict~~ |
|
| `user_data` | Optional extra data to attach to the Doc. ~~Dict~~ |
|
||||||
| `tags` <Tag variant="new">3</Tag> | A list of strings, of the same length as `words`, to assign as `token.tag` for each word. Defaults to `None`. ~~Optional[List[str]]~~ |
|
| `tags` <Tag variant="new">3</Tag> | A list of strings, of the same length as `words`, to assign as `token.tag` for each word. Defaults to `None`. ~~Optional[List[str]]~~ |
|
||||||
| `pos` <Tag variant="new">3</Tag> | A list of strings, of the same length as `words`, to assign as `token.pos` for each word. Defaults to `None`. ~~Optional[List[str]]~~ |
|
| `pos` <Tag variant="new">3</Tag> | A list of strings, of the same length as `words`, to assign as `token.pos` for each word. Defaults to `None`. ~~Optional[List[str]]~~ |
|
||||||
| `morphs` <Tag variant="new">3</Tag> | A list of strings, of the same length as `words`, to assign as `token.morph` for each word. Defaults to `None`. ~~Optional[List[str]]~~ |
|
| `morphs` <Tag variant="new">3</Tag> | A list of strings, of the same length as `words`, to assign as `token.morph` for each word. Defaults to `None`. ~~Optional[List[str]]~~ |
|
||||||
|
|
|
@ -21,8 +21,8 @@ menu:
|
||||||
## Package naming conventions {id="conventions"}
|
## Package naming conventions {id="conventions"}
|
||||||
|
|
||||||
In general, spaCy expects all pipeline packages to follow the naming convention
|
In general, spaCy expects all pipeline packages to follow the naming convention
|
||||||
of `[lang]\_[name]`. For spaCy's pipelines, we also chose to divide the name
|
of `[lang]_[name]`. For spaCy's pipelines, we also chose to divide the name into
|
||||||
into three components:
|
three components:
|
||||||
|
|
||||||
1. **Type:** Capabilities (e.g. `core` for general-purpose pipeline with
|
1. **Type:** Capabilities (e.g. `core` for general-purpose pipeline with
|
||||||
tagging, parsing, lemmatization and named entity recognition, or `dep` for
|
tagging, parsing, lemmatization and named entity recognition, or `dep` for
|
||||||
|
|
Loading…
Reference in New Issue