Fix LLM EntityLinker task factory typo

Change the factory string for the EntityLinker to "llm_entitylinker" so it works, as per https://github.com/explosion/spacy-llm/blob/main/spacy_llm/tasks/__init__.py#L33. This appears to be the only place it is documented.
This commit is contained in:
Carter Jameson 2025-06-24 12:58:49 -06:00 committed by GitHub
parent 41e07772dc
commit 8f10cf4c52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,7 @@ through a generic `llm`
[component factory](https://spacy.io/usage/processing-pipelines#custom-components-factories)
as well as through task-specific component factories: `llm_ner`, `llm_spancat`,
`llm_rel`, `llm_textcat`, `llm_sentiment`, `llm_summarization`,
`llm_entity_linker`, `llm_raw` and `llm_translation`. For these factories, the
`llm_entitylinker`, `llm_raw` and `llm_translation`. For these factories, the
GPT-3-5 model from OpenAI is used by default, but this can be customized.
> #### Example