PrivacySpan
Defined in: packages/runntime/src/zoo/tasks/nlp/privacyFilter.ts:20
One piece of personal data found in the text.
Properties
Section titled “Properties”
readonlyend:number
Defined in: packages/runntime/src/zoo/tasks/nlp/privacyFilter.ts:27
readonlylabel:string
Defined in: packages/runntime/src/zoo/tasks/nlp/privacyFilter.ts:24
The kind of data: private_person, private_email, private_phone,
private_address, private_date, private_url, account_number
or secret.
placeholder
Section titled “placeholder”
readonlyplaceholder:string
Defined in: packages/runntime/src/zoo/tasks/nlp/privacyFilter.ts:31
A tag to put in its place, like <PRIVATE_EMAIL>.
readonlystart:number
Defined in: packages/runntime/src/zoo/tasks/nlp/privacyFilter.ts:26
Where it sits in the text, as string indices. end is exclusive.
readonlytext:string
Defined in: packages/runntime/src/zoo/tasks/nlp/privacyFilter.ts:29
The matched text, text.slice(start, end).