MediaPipeTasksText Framework Reference

TextEmbedderOptions

class TextEmbedderOptions : TaskOptions, NSCopying

Options for setting up a TextEmbedder.

  • Sets whether L2 normalization should be performed on the returned embeddings (false by default).

    Declaration

    Swift

    var l2Normalize: Bool
  • Sets whether the returned embedding should be quantized to bytes via scalar quantization (false by default).

    Declaration

    Swift

    var quantize: Bool