MediaPipeTasksText Framework Reference

Structures

The following declarations are available globally.

  • A single unchanged, inserted, or deleted text segment produced during proofreading.

    Declaration

    Swift

    struct Correction: Sendable, Equatable, Hashable
  • Configuration for initializing and filtering a LanguageDetector task.

    Declaration

    Swift

    struct LanguageDetectorOptions: Sendable, Equatable, Hashable
  • Detection output produced by LanguageDetector for an input text.

    Declaration

    Swift

    struct LanguageDetectorResult: Sendable, Equatable, Hashable
  • A predicted language and its confidence score.

    Declaration

    Swift

    struct LanguagePrediction: Sendable, Equatable, Hashable
  • Configuration options for setting up a TextClassifier task.

    Declaration

    Swift

    struct TextClassifierOptions: Sendable, Equatable, Hashable
  • Classification output produced by TextClassifier for an input string.

    Declaration

    Swift

    struct TextClassifierResult: Sendable, Equatable, Hashable
  • Configuration options for TextEmbedder.

    Declaration

    Swift

    struct TextEmbedderOptions: Sendable, Equatable, Hashable
  • Output produced by a TextEmbedder inference call.

    Declaration

    Swift

    struct TextEmbedderResult: Sendable, Equatable, Hashable
  • Prompt-formatting instructions for models that distinguish task intent and role (such as Gecko).

    Declaration

    Swift

    struct TextFormatContext: Sendable, Equatable, Hashable
  • Configuration options for the MediaPipe TextProofreader task.

    Declaration

    Swift

    struct TextProofreaderOptions: Sendable, Equatable, Hashable
  • Completed output returned by synchronous proofreading.

    Declaration

    Swift

    struct TextProofreaderResult: Sendable, Equatable, Hashable
  • Incremental chunk or terminal diff returned during streaming proofreading.

    Declaration

    Swift

    struct TextProofreaderStreamResult: Sendable, Equatable, Hashable
  • Configuration options for setting up a TextSummarizer task.

    Declaration

    Swift

    struct TextSummarizerOptions: Sendable, Equatable, Hashable
  • Complete summary output produced by TextSummarizer.

    Declaration

    Swift

    struct TextSummarizerResult: Sendable, Equatable, Hashable
  • Incremental chunk produced during streaming text summarization.

    Declaration

    Swift

    struct TextSummarizerStreamResult: Sendable, Equatable, Hashable