PiiEntity 클래스

PiiEntity는 텍스트에 있는 PII(개인 식별 정보) 엔터티에 대한 정보를 포함합니다.

상속
azure.ai.textanalytics._dict_mixin.DictMixin
PiiEntity

생성자

PiiEntity(**kwargs: Any)

메서드

get
has_key
items
keys
update
values

get

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

매개 변수

Name Description
key
필수
default
기본값: None

has_key

has_key(k: str) -> bool

매개 변수

Name Description
k
필수

items

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

keys

keys() -> Iterable[str]

update

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

values

values() -> Iterable[Any]

특성

category

엔터티 범주(예: 재무 계정 식별/사회 보장 번호/전화 번호 등)

category: str

confidence_score

추출된 엔터티의 신뢰도 점수가 0에서 1 사이입니다.

confidence_score: float

length

PII 엔터티 텍스트 길이입니다. 이 값은 원래 요청에 지정된 string_index_type 매개 변수 값(기본적으로 UnicodeCodePoints)에 따라 달라집니다.

length: int

offset

문서 시작 부분의 PII 엔터티 텍스트 오프셋입니다. 이 값은 원래 요청에 지정된 string_index_type 매개 변수 값(기본적으로 UnicodeCodePoints)에 따라 달라집니다.

offset: int

subcategory

신용 카드/EU 전화 번호/ABA 라우팅 번호 등과 같은 엔터티 하위 범주

subcategory: str | None = None

text

요청에 나타나는 엔터티 텍스트입니다.

text: str