SwiftstructSensitiveContentAnalysisML

struct SensitiveContentAnalysisML.LocalizedMultiwordGazetteer

Members 9

  1. fieldlet gazetteers: [SensitiveContentAnalysisML.MultiwordGazetteer]+0x0
  2. funcfindSubPhraseMatches(normalizedText: String) -> [Range<String.Index>]
  3. funcfindSubPhraseMatches(text: String) -> [Range<String.Index>]
  4. funchasAnyGazetteers() -> Bool
  5. funchasFullMatch(normalizedTokens: any Sequence<Self.Sequence.Element == String>) -> Bool
  6. funchasFullMatch(text: String) throws -> Bool
  7. funchasSubphraseMatch(normalizedTokens: [String]) -> Bool
  8. funchasSubphraseMatch(text: String) throws -> Bool
  9. initinit(directory: String, name: String, locale: Foundation.Locale, maxGazetteerTokens: Int) throws -> SensitiveContentAnalysisML.LocalizedMultiwordGazetteer
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>]
}