Update EL task docs.

This commit is contained in:
Raphael Mitsch 2023-11-17 12:58:05 +01:00
parent e4291b05f2
commit be672deeb4

View File

@ -350,7 +350,7 @@ candidate.
> [initialize.components.llm.candidate_selector] > [initialize.components.llm.candidate_selector]
> @llm_misc = "spacy.CandidateSelector.v1" > @llm_misc = "spacy.CandidateSelector.v1"
> >
> # Load a KB from a KB file. For loading KBs from spaCy pipelines see spacy.KBObjectLoader.v1. > # Load a KB from a KB file. For loading KBs from spaCy pipelines see [`spacy.KBObjectLoader.v1`](#kb-object-loader-v1).
> [initialize.components.llm.candidate_selector.kb_loader] > [initialize.components.llm.candidate_selector.kb_loader]
> @llm_misc = "spacy.KBFileLoader.v1" > @llm_misc = "spacy.KBFileLoader.v1"
> # Path to knowledge base .yaml file. > # Path to knowledge base .yaml file.
@ -400,8 +400,8 @@ entity candidates for the specified mentions.
##### spacy.KBObjectLoader.v1 {id="kb-object-loader-v1"} ##### spacy.KBObjectLoader.v1 {id="kb-object-loader-v1"}
Adheres to the `InMemoryLookupKBLoader` interface required by Adheres to the `InMemoryLookupKBLoader` interface required by
`spacy.CandidateSelector.v1`. Loads a knowledge base from an existing spaCy [`spacy.CandidateSelector.v1`](#candidate-selector-v1). Loads a knowledge base
pipeline. from an existing spaCy pipeline.
> #### Example config for spacy.KBObjectLoader.v1 > #### Example config for spacy.KBObjectLoader.v1
> >
@ -426,8 +426,9 @@ pipeline.
##### spacy.KBFileLoader.v1 {id="kb-file-loader-v1"} ##### spacy.KBFileLoader.v1 {id="kb-file-loader-v1"}
Adheres to the `InMemoryLookupKBLoader` interface required by Adheres to the `InMemoryLookupKBLoader` interface required by
`spacy.CandidateSelector.v1`. Loads a knowledge base from a knowledge base file. [`spacy.CandidateSelector.v1`](#candidate-selector-v1). Loads a knowledge base
The KB .yaml file has to stick to the following format: from a knowledge base file. The KB .yaml file has to stick to the following
format:
```yaml ```yaml
entities: entities: