mirror of https://github.com/explosion/spaCy.git
Fix consistency
This commit is contained in:
parent
9c25656ccc
commit
225f8866a1
|
@ -527,7 +527,7 @@ You can register custom annotation setters using the
|
|||
> #### Example
|
||||
>
|
||||
> ```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 setter(docs: List[Doc], trf_data: FullTransformerBatch) -> None:
|
||||
> pass
|
||||
|
@ -542,9 +542,9 @@ You can register custom annotation setters using the
|
|||
|
||||
The following built-in functions are available:
|
||||
|
||||
| Name | Description |
|
||||
| --------------------------------------------- | ------------------------------------- |
|
||||
| `spacy-transformer.null_annotation_setter.v1` | Don't set any additional annotations. |
|
||||
| Name | Description |
|
||||
| ---------------------------------------------- | ------------------------------------- |
|
||||
| `spacy-transformers.null_annotation_setter.v1` | Don't set any additional annotations. |
|
||||
|
||||
## Custom attributes {#custom-attributes}
|
||||
|
||||
|
|
|
@ -230,7 +230,7 @@ tokenizer_config = {"use_fast": true}
|
|||
@span_getters = "doc_spans.v1"
|
||||
|
||||
[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