Skip to main content
Version: Next

Interface: PiiEntity

Defined in: types/privacyFilter.ts:67

A single detected PII entity span.

Properties

endToken

endToken: number

Defined in: types/privacyFilter.ts:75

Exclusive end token index.


label

label: string

Defined in: types/privacyFilter.ts:69

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


startToken

startToken: number

Defined in: types/privacyFilter.ts:73

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


text

text: string

Defined in: types/privacyFilter.ts:71

Decoded text of the span (whitespace trimmed).