共用方式為


CategorizedEntity 類別

CategorizedEntity 包含文字中找到之特定實體的相關資訊。

v3.1 版的新功能: 位移長度 屬性。

繼承
azure.ai.textanalytics._dict_mixin.DictMixin
CategorizedEntity

建構函式

CategorizedEntity(**kwargs: Any)

方法

get
has_key
items
keys
update
values

get

get(key: str, default: Any | None = None) -> Any

參數

key
必要
default
預設值: None

has_key

has_key(k: str) -> bool

參數

k
必要

items

items() -> Iterable[Tuple[str, Any]]

keys

keys() -> Iterable[str]

update

update(*args: Any, **kwargs: Any) -> None

values

values() -> Iterable[Any]

屬性

category

實體類別,例如 Person/Location/Org/SSN 等

category: str

confidence_score

擷取實體的 0 到 1 之間的信賴分數。

confidence_score: float

length

實體文字長度。 此值取決於原始要求中 設定的 string_index_type 參數值,預設為 UnicodeCodePoints。

length: int

offset

檔開頭的實體文字位移。 值取決於原始要求中 設定string_index_type 參數的值,預設為 UnicodeCodePoints。

offset: int

subcategory

實體子類別,例如 Age/Year/TimeRange 等

subcategory: str | None = None

text

要求中顯示的實體文字。

text: str