SwiftstructSensitiveContentAnalysisML
LocalizedMultiwordGazetteer
struct SensitiveContentAnalysisML.LocalizedMultiwordGazetteer
Members 9
- field
let gazetteers: [SensitiveContentAnalysisML.MultiwordGazetteer]+0x0 - func
findSubPhraseMatches(normalizedText: String) -> [Range<String.Index>] - func
findSubPhraseMatches(text: String) -> [Range<String.Index>] - func
hasAnyGazetteers() -> Bool - func
hasFullMatch(normalizedTokens: any Sequence<Self.Sequence.Element == String>) -> Bool - func
hasFullMatch(text: String) throws -> Bool - func
hasSubphraseMatch(normalizedTokens: [String]) -> Bool - func
hasSubphraseMatch(text: String) throws -> Bool - init
init(directory: String, name: String, locale: Foundation.Locale, maxGazetteerTokens: Int) throws -> SensitiveContentAnalysisML.LocalizedMultiwordGazetteer
Header
struct LocalizedMultiwordGazetteer { struct NoGazetteerFoundError { enum CodingKeys { case name case directory case locale } let name: Swift.String let directory: Swift.String let locale: Foundation.Locale } let gazetteers: [SensitiveContentAnalysisML.MultiwordGazetteer] init(directory: Swift.String, name: Swift.String, locale: Foundation.Locale, maxGazetteerTokens: Swift.Int) throws func hasFullMatch(normalizedTokens: any Swift.Sequence<Swift.String>) -> Swift.Bool func hasFullMatch(text: Swift.String) throws -> Swift.Bool func hasAnyGazetteers() -> Swift.Bool func hasSubphraseMatch(normalizedTokens: [Swift.String]) -> Swift.Bool func hasSubphraseMatch(text: Swift.String) throws -> Swift.Bool func findSubPhraseMatches(normalizedText: Swift.String) -> [Swift.Range<Swift.String.Index>] func findSubPhraseMatches(text: Swift.String) -> [Swift.Range<Swift.String.Index>] }