CoreferenceResolver
org.llm4s.knowledgegraph.extraction.CoreferenceResolver
Resolves coreferences within a document before knowledge graph extraction.
Uses an LLM to replace pronouns and indirect references (e.g., "he", "the company", "its founder") with explicit entity names. This pre-processing step reduces duplicate nodes that would otherwise be created when the extractor encounters unresolved references.
Value parameters
- llmClient
-
The LLM client to use for coreference resolution
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article