Fix consistency

This commit is contained in:
Ines Montani 2020-08-19 12:47:57 +02:00
parent 9c25656ccc
commit 225f8866a1
2 changed files with 5 additions and 5 deletions

View File

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

View File

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