Interface: PrivacyFilterType
Defined in: types/privacyFilter.ts:82
React hook state and methods for a Privacy Filter model.
Properties
downloadProgress
downloadProgress:
number
Defined in: types/privacyFilter.ts:86
error
error:
RnExecutorchError|null
Defined in: types/privacyFilter.ts:83
isGenerating
isGenerating:
boolean
Defined in: types/privacyFilter.ts:85
isReady
isReady:
boolean
Defined in: types/privacyFilter.ts:84
Methods
generate()
generate(
text):Promise<PiiEntity[]>
Defined in: types/privacyFilter.ts:94
Run PII detection over the given text. Long inputs are processed in
sliding windows with 50% overlap; no truncation. The window size is
determined by the model's exported forward input shape.
Parameters
text
string
Input text.
Returns
Promise<PiiEntity[]>
A promise resolving to detected entity spans.