mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 02:36:32 +03:00
Fix consistency
This commit is contained in:
parent
9c25656ccc
commit
225f8866a1
|
@ -527,7 +527,7 @@ You can register custom annotation setters using the
|
||||||
> #### Example
|
> #### Example
|
||||||
>
|
>
|
||||||
> ```python
|
> ```python
|
||||||
> @registry.annotation_setters("spacy-transformer.null_annotation_setter.v1")
|
> @registry.annotation_setters("spacy-transformers.null_annotation_setter.v1")
|
||||||
> def configure_null_annotation_setter() -> Callable:
|
> def configure_null_annotation_setter() -> Callable:
|
||||||
> def setter(docs: List[Doc], trf_data: FullTransformerBatch) -> None:
|
> def setter(docs: List[Doc], trf_data: FullTransformerBatch) -> None:
|
||||||
> pass
|
> pass
|
||||||
|
@ -542,9 +542,9 @@ You can register custom annotation setters using the
|
||||||
|
|
||||||
The following built-in functions are available:
|
The following built-in functions are available:
|
||||||
|
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
| --------------------------------------------- | ------------------------------------- |
|
| ---------------------------------------------- | ------------------------------------- |
|
||||||
| `spacy-transformer.null_annotation_setter.v1` | Don't set any additional annotations. |
|
| `spacy-transformers.null_annotation_setter.v1` | Don't set any additional annotations. |
|
||||||
|
|
||||||
## Custom attributes {#custom-attributes}
|
## Custom attributes {#custom-attributes}
|
||||||
|
|
||||||
|
|
|
@ -230,7 +230,7 @@ tokenizer_config = {"use_fast": true}
|
||||||
@span_getters = "doc_spans.v1"
|
@span_getters = "doc_spans.v1"
|
||||||
|
|
||||||
[components.transformer.annotation_setter]
|
[components.transformer.annotation_setter]
|
||||||
@annotation_setters = "spacy-transformer.null_annotation_setter.v1"
|
@annotation_setters = "spacy-transformers.null_annotation_setter.v1"
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user