Text.NER.Entity (Text v0.5.0)

Copy Markdown View Source

A single named entity span.

Fields

  • text — the span's surface text, exactly as it appeared in the input.

  • type — the entity category. Atoms drawn from the model's label set; the default model uses :per, :org, :loc, or :misc.

  • start, end — byte offsets of the span within the input.

  • score — the model's confidence in [0.0, 1.0].

Summary

Types

t()

@type t() :: %Text.NER.Entity{
  end: non_neg_integer(),
  score: float(),
  start: non_neg_integer(),
  text: String.t(),
  type: atom()
}