veil.entity_resolvers¶
- class veil.entity_resolvers.EmbeddingsEntityResolver(config)[source]¶
Bases:
objectWithin-document entity resolver using simple char-ngrams + cosine.
v1 intentionally avoids external dependencies. It computes normalized 3-gram character vectors for mention strings and links pairs with cosine similarity >= threshold. Clusters are connected components. Only spans of the same entity_type are compared. IDs are assigned deterministically by first-appearance in the document.
- Parameters:
config (EmbeddingsEntityResolverConfig)