Skip to main content
Version: 0.9.x

Interface: PrivacyFilterType

Defined in: types/privacyFilter.ts:91

React hook state and methods for a Privacy Filter model.

Properties

downloadProgress

downloadProgress: number

Defined in: types/privacyFilter.ts:95


error

error: RnExecutorchError | null

Defined in: types/privacyFilter.ts:92


isGenerating

isGenerating: boolean

Defined in: types/privacyFilter.ts:94


isReady

isReady: boolean

Defined in: types/privacyFilter.ts:93

Methods

generate()

generate(text): Promise<PiiEntity[]>

Defined in: types/privacyFilter.ts:103

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.