Arcana.Graph.NERServing (Arcana v2.0.1)

Copy Markdown View Source

Lazy-loaded Nx.Serving for Named Entity Recognition using Bumblebee.

Uses dslim/distilbert-NER which is 40% smaller than BERT-base while retaining 97% accuracy. Only loaded when graph features are used.

Summary

Functions

Returns a specification to start this module under a supervisor.

Ensures the NER serving is started. Called automatically by run/1.

Runs NER on the given text, starting the serving if not already running. Returns a list of entity maps with :entity, :label, :start, :end, :score.

Checks if the NER serving is currently running.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

ensure_started()

Ensures the NER serving is started. Called automatically by run/1.

run(text)

Runs NER on the given text, starting the serving if not already running. Returns a list of entity maps with :entity, :label, :start, :end, :score.

running?()

Checks if the NER serving is currently running.

start_link(opts \\ [])