Skip to main content
Version: Next

Interface: PiiEntity

Defined in: types/privacyFilter.ts:58

A single detected PII entity span.

Properties

endToken

endToken: number

Defined in: types/privacyFilter.ts:66

Exclusive end token index.


label

label: string

Defined in: types/privacyFilter.ts:60

Entity type, e.g. private_person, private_email, secret.


startToken

startToken: number

Defined in: types/privacyFilter.ts:64

Inclusive start token index in the original (unpadded) tokenization.


text

text: string

Defined in: types/privacyFilter.ts:62

Decoded text of the span (whitespace trimmed).