SwiftclassDocumentUnderstanding
DUIDClassificationImplementation
class DocumentUnderstanding.DUIDClassificationImplementation
Members 11
- func
static containsDataDetector(for: String) -> (Bool, Int, [String]) - func
static hasRequiredClassifierAssets() -> Bool - func
static isIDDocumentLLM(for: String, labelThreshold: Double) async throws -> (Bool, Double)? - func
static textLengthGate(for: String, minLength: Int, maxLength: Int) -> (Bool, Int) - deinit
deinit - field
var currentlyLoadedLocale: Foundation.Locale? - field
var idClassificationGatingModel: NLModel?+0x10 - field
var modelDescription: String? - func
getLoadedModelDescription() -> String? - func
isIDDocument(for: String, labelKey: String, labelThreshold: Double, powerLogEvents: inout [DocumentUnderstanding.DUPowerEvent]) throws -> (Bool, Double, String?) - init
DocumentUnderstanding.DUIDClassificationImplementation.__allocating_init() -> DocumentUnderstanding.DUIDClassificationImplementation
Header
class DUIDClassificationImplementation { var idClassificationGatingModel: __C.NLModel? var currentlyLoadedLocale: Foundation.Locale? var modelDescription: Swift.String? init() func getLoadedModelDescription() -> Swift.String? func isIDDocument(for: Swift.String, labelKey: Swift.String, labelThreshold: Swift.Double, powerLogEvents: inout [DocumentUnderstanding.DUPowerEvent]) throws -> (Swift.Bool, Swift.Double, Swift.String?) static func textLengthGate(for: Swift.String, minLength: Swift.Int, maxLength: Swift.Int) -> (Swift.Bool, Swift.Int) static func isIDDocumentLLM(for: Swift.String, labelThreshold: Swift.Double) async throws -> (Swift.Bool, Swift.Double)? static func containsDataDetector(for: Swift.String) -> (Swift.Bool, Swift.Int, [Swift.String]) static func hasRequiredClassifierAssets() -> Swift.Bool deinit }