// swift-interface-format-version: 1.0 // swift-compiler-version: Apple Swift version 6.3 effective-5.10 (swiftlang-6.3.0.123.4 clang-2100.0.123.2) // swift-module-flags: -target arm64e-apple-macos26.4 -target-variant arm64e-apple-ios26.4-macabi -enable-objc-interop -autolink-force-load -enable-library-evolution -module-link-name swiftNaturalLanguage -swift-version 5 -enforce-exclusivity=checked -O -library-level api -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -user-module-version 4.3 -module-name NaturalLanguage // swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3 import Foundation @_exported import NaturalLanguage import Swift import _Concurrency import _StringProcessing import _SwiftConcurrencyShims @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *) extension NaturalLanguage.NLTokenizer { @nonobjc public func tokenRange(at index: Swift.String.Index) -> Swift.Range @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *) @nonobjc public func tokenRange(for range: Swift.Range) -> Swift.Range @nonobjc public func enumerateTokens(in range: Swift.Range, using block: (Swift.Range, NaturalLanguage.NLTokenizer.Attributes) -> Swift.Bool) @nonobjc public func tokens(for range: Swift.Range) -> [Swift.Range] } @available(macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0, *) extension NaturalLanguage.NLContextualEmbeddingResult { @nonobjc public func tokenVector(at index: Swift.String.Index) -> ([Swift.Double], Swift.Range)? @nonobjc public func enumerateTokenVectors(in range: Swift.Range, using block: ([Swift.Double], Swift.Range) -> Swift.Bool) } @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *) extension NaturalLanguage.NLTagger { @nonobjc public func tokenRange(at index: Swift.String.Index, unit: NaturalLanguage.NLTokenUnit) -> Swift.Range @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *) @nonobjc public func tokenRange(for range: Swift.Range, unit: NaturalLanguage.NLTokenUnit) -> Swift.Range @nonobjc public func tag(at index: Swift.String.Index, unit: NaturalLanguage.NLTokenUnit, scheme: NaturalLanguage.NLTagScheme) -> (NaturalLanguage.NLTag?, Swift.Range) @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *) @nonobjc public func tagHypotheses(at index: Swift.String.Index, unit: NaturalLanguage.NLTokenUnit, scheme: NaturalLanguage.NLTagScheme, maximumCount: Swift.Int) -> ([Swift.String : Swift.Double], Swift.Range) @nonobjc public func enumerateTags(in range: Swift.Range, unit: NaturalLanguage.NLTokenUnit, scheme: NaturalLanguage.NLTagScheme, options: NaturalLanguage.NLTagger.Options = [], using block: (NaturalLanguage.NLTag?, Swift.Range) -> Swift.Bool) @nonobjc public func tags(in range: Swift.Range, unit: NaturalLanguage.NLTokenUnit, scheme: NaturalLanguage.NLTagScheme, options: NaturalLanguage.NLTagger.Options = []) -> [(NaturalLanguage.NLTag?, Swift.Range)] @nonobjc public func setLanguage(_ language: NaturalLanguage.NLLanguage, range: Swift.Range) @nonobjc public func setOrthography(_ orthography: Foundation.NSOrthography, range: Swift.Range) } @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *) extension NaturalLanguage.NLModel { @nonobjc public func predictedLabelHypotheses(for string: Swift.String, maximumCount maxCount: Swift.Int) -> [Swift.String : Swift.Double] @nonobjc public func predictedLabelHypotheses(forTokens tokens: [Swift.String], maximumCount maxCount: Swift.Int) -> [[Swift.String : Swift.Double]] } @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) extension NaturalLanguage.NLEmbedding { @nonobjc public func distance(between firstString: Swift.String, and secondString: Swift.String, distanceType: NaturalLanguage.NLDistanceType = .cosine) -> NaturalLanguage.NLDistance @nonobjc public func enumerateNeighbors(for string: Swift.String, maximumCount maxCount: Swift.Int, distanceType: NaturalLanguage.NLDistanceType = .cosine, using block: (Swift.String, NaturalLanguage.NLDistance) -> Swift.Bool) @nonobjc public func neighbors(for string: Swift.String, maximumCount maxCount: Swift.Int, distanceType: NaturalLanguage.NLDistanceType = .cosine) -> [(Swift.String, NaturalLanguage.NLDistance)] @nonobjc public func enumerateNeighbors(for vector: [Swift.Double], maximumCount maxCount: Swift.Int, distanceType: NaturalLanguage.NLDistanceType = .cosine, using block: (Swift.String, NaturalLanguage.NLDistance) -> Swift.Bool) @nonobjc public func neighbors(for vector: [Swift.Double], maximumCount maxCount: Swift.Int, distanceType: NaturalLanguage.NLDistanceType = .cosine) -> [(Swift.String, NaturalLanguage.NLDistance)] @nonobjc public func vector(for string: Swift.String) -> [Swift.Double]? @nonobjc public class func write(_ dictionary: [Swift.String : [Swift.Double]], language: NaturalLanguage.NLLanguage?, revision: Swift.Int, to url: Foundation.URL) throws } @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *) extension NaturalLanguage.NLLanguageRecognizer { @nonobjc public var languageHints: [NaturalLanguage.NLLanguage : Swift.Double] { get set(newHints) } @nonobjc public func languageHypotheses(withMaximum maxHypotheses: Swift.Int) -> [NaturalLanguage.NLLanguage : Swift.Double] }