Obscura.Recognizer.GLiNER (obscura v0.1.0)

Copy Markdown View Source

Optional GLiNER recognizer facade.

Summary

Functions

Analyzes text with a GLiNER serving.

Analyzes multiple texts.

Recognizer name.

Supported entities for the default GLiNER label profile.

Functions

analyze(text, opts \\ [])

@spec analyze(
  String.t(),
  keyword()
) :: {:ok, [Obscura.Analyzer.Result.t()]} | {:error, term()}

Analyzes text with a GLiNER serving.

analyze_many(texts, opts \\ [])

@spec analyze_many(
  [String.t()],
  keyword()
) :: {:ok, [[Obscura.Analyzer.Result.t()]]} | {:error, term()}

Analyzes multiple texts.

name()

@spec name() :: atom()

Recognizer name.

supported_entities()

@spec supported_entities() :: [atom()]

Supported entities for the default GLiNER label profile.