Behaviour and dispatcher for analyzer-level NLP artifact engines.
Presidio runs NLP once and passes shared artifacts to recognizers. Obscura's
default engine remains dependency-light tokenization, while optional engines
can attach model outputs for recognizers such as Obscura.Recognizer.NER.
Summary
Functions
Builds artifacts for one text using explicit artifacts, a configured engine, or the dependency-light tokenizer.
Builds artifacts for many texts while preserving input order.
Callbacks
@callback build_artifacts( String.t(), keyword() ) :: {:ok, Obscura.NLP.Artifacts.t()} | {:error, term()}
@callback build_many( [String.t()], keyword() ) :: {:ok, [Obscura.NLP.Artifacts.t()]} | {:error, term()}
Functions
@spec build_artifacts( String.t(), keyword() ) :: {:ok, Obscura.NLP.Artifacts.t()} | {:error, term()}
Builds artifacts for one text using explicit artifacts, a configured engine, or the dependency-light tokenizer.
@spec build_many( [String.t()], keyword() ) :: {:ok, [Obscura.NLP.Artifacts.t()]} | {:error, term()}
Builds artifacts for many texts while preserving input order.