DocumentStatus

public struct DocumentStatus : Codable, Equatable

Document information, including translation status.

  • The status of the translation job associated with a submitted document.

    See more

    Declaration

    Swift

    public enum Status : String
  • System generated ID identifying a document being translated using one specific translation model.

    Declaration

    Swift

    public var documentID: String
  • filename from the submission (if it was missing in the multipart-form, ‘noname.’ is used.

    Declaration

    Swift

    public var filename: String
  • The status of the translation job associated with a submitted document.

    Declaration

    Swift

    public var status: String
  • A globally unique string that identifies the underlying model that is used for translation.

    Declaration

    Swift

    public var modelID: String
  • Model ID of the base model that was used to customize the model. If the model is not a custom model, this will be absent or an empty string.

    Declaration

    Swift

    public var baseModelID: String?
  • Translation source language code.

    Declaration

    Swift

    public var source: String
  • A score between 0 and 1 indicating the confidence of source language detection. A higher value indicates greater confidence. This is returned only when the service automatically detects the source language.

    Declaration

    Swift

    public var detectedLanguageConfidence: Double?
  • Translation target language code.

    Declaration

    Swift

    public var target: String
  • The time when the document was submitted.

    Declaration

    Swift

    public var created: Date
  • The time when the translation completed.

    Declaration

    Swift

    public var completed: Date?
  • An estimate of the number of words in the source document. Returned only if status is available.

    Declaration

    Swift

    public var wordCount: Int?
  • The number of characters in the source document, present only if status=available.

    Declaration

    Swift

    public var characterCount: Int?