MediaPipeTasksText Framework Reference

Enumerations

The following declarations are available globally.

  • Edit operation transforming a segment of input text into proofread output.

    Declaration

    Swift

    enum CorrectionType: Sendable, Equatable, Hashable, CaseIterable, RawRepresentable
  • Task intent used to format input text for prompt-aware embedding models.

    Declaration

    Swift

    enum EmbeddingType: Sendable, Equatable, Hashable, CaseIterable, RawRepresentable
  • Role of input text within a prompt-formatted embedding task.

    Declaration

    Swift

    enum TextRole: Sendable, Equatable, Hashable, CaseIterable, RawRepresentable
  • Summary style generated by TextSummarizer.

    Declaration

    Swift

    enum TextSummarizerMode: Sendable, Equatable, Hashable, CaseIterable, RawRepresentable