SwiftprotocolTranslationInference

protocol TranslationInference.OneShotTranslationProviding

Members 3

  1. funcmethod descriptor for getMaxInputTokens(TranslationInference.LanguagePair) async throws -> Int
  2. funcmethod descriptor for tokenCount(String) async throws -> Int
  3. funcmethod descriptor for translate(_: TranslationInference.TranslationInput, previousTranslation: TranslationInference.TranslationResult?) async throws -> TranslationInference.TranslationResult
protocol OneShotTranslationProviding {
    func translate(_: TranslationInference.TranslationInput, previousTranslation: TranslationInference.TranslationResult?) async throws -> TranslationInference.TranslationResult
    func getMaxInputTokens(_: TranslationInference.LanguagePair) async throws -> Swift.Int
    func tokenCount(_: Swift.String) async throws -> Swift.Int
}