MediaPipeTasksText Framework Reference

TextProofreaderOptions

class TextProofreaderOptions : TaskOptions, NSCopying

Options for configuring a MediaPipe TextProofreader task.

  • The maximum number of tokens for proofread tasks (0 uses the model's default capacity).

    Declaration

    Swift

    var maxTokens: Int
  • Cache directory for the model weight cache and program cache (set to ":nocache" to disable).

    Declaration

    Swift

    var cacheDirectory: String?