# `Obscura.Recognizer.GLiNER.Ortex`
[🔗](https://github.com/hfiguera/obscura/blob/v0.2.0/lib/obscura/recognizer/gliner/ortex.ex#L1)

Optional Ortex-backed serving for GLiNER span models.

# `t`

```elixir
@type t() :: %Obscura.Recognizer.GLiNER.Ortex{
  config: term(),
  execution_providers: term(),
  model: term(),
  model_spec: term(),
  paths: term(),
  profile_prefix: term(),
  provider_metadata: term(),
  runtime_module: term(),
  tokenizer: term()
}
```

# `build`

```elixir
@spec build(keyword()) :: {:ok, t()} | {:error, term()}
```

Builds an Ortex GLiNER serving from local model assets.

# `finish_profiling`

```elixir
@spec finish_profiling(t()) :: {:ok, map()} | {:error, term()}
```

Flushes an enabled ONNX Runtime profile and summarizes execution-provider use.

CoreML participation proves that ONNX Runtime assigned work to CoreML. It does
not prove GPU-only execution because CoreML has no GPU-only compute-unit mode.

# `run`

```elixir
@spec run(t(), String.t(), keyword()) :: {:ok, [map()]} | {:error, term()}
```

Runs GLiNER inference for one text.

# `run_many`

```elixir
@spec run_many(t(), [String.t()], keyword()) :: {:ok, [[map()]]} | {:error, term()}
```

Runs GLiNER inference for many texts.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
