MediaPipeTasksText Framework Reference

MPPTextRole

enum MPPTextRole: RawRepresentable, Sendable, Equatable, Hashable, BitwiseCopyable

The role of the text in the context of the embedding task for Gecko models.

  • Declaration

    Swift

    case document
  • Declaration

    Swift

    case query
  • Creates a new instance with the specified raw value.

    Declaration

    Swift

    init?(rawValue: UInt)