Interface: PrivacyFilterModelSources
Defined in: types/privacyFilter.ts:44
Bundle of resources needed to instantiate a privacy filter model. The
built-in PRIVACY_FILTER_OPENAI / PRIVACY_FILTER_NEMOTRON constants
conform to this shape; you can also build one yourself for a custom
fine-tune as long as the label list matches the model's id2label.
Properties
labelNames
labelNames: readonly
string[]
Defined in: types/privacyFilter.ts:53
BIOES label list. Index 0 must be "O"; index i must equal the model's
id2label[i]. The runner argmaxes over labelNames.length classes per
token, so the size must match the model head exactly.
modelName
modelName:
PrivacyFilterModelName|string&object
Defined in: types/privacyFilter.ts:45
modelSource
modelSource:
ResourceSource
Defined in: types/privacyFilter.ts:46
tokenizerSource
tokenizerSource:
ResourceSource
Defined in: types/privacyFilter.ts:47
viterbiBiases?
optionalviterbiBiases:ViterbiBiases
Defined in: types/privacyFilter.ts:60
Optional Viterbi calibration. When present, biases are added during
decoding to shift the precision/recall tradeoff. Defaults to all
zeros (neutral) — same as the default operating point in OpenAI's
viterbi_calibration.json.