MediaPipeTasksText Framework Reference

MPPTextEmbedderResult


@interface MPPTextEmbedderResult : MPPTaskResult

Represents the embedding results generated by MPPTextEmbedder. *

  • The MPPEmbedderResult instance containing one embedding per embedder head. *

    Declaration

    Objective-C

    @property (nonatomic, readonly) MPPEmbeddingResult *_Nonnull embeddingResult;
  • Initializes a new MPPTextEmbedderResult with the given MPPEmbeddingResult and timestamp (in milliseconds).

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithEmbeddingResult:(nonnull MPPEmbeddingResult *)embeddingResult
        timestampInMilliseconds:(NSInteger)timestampInMilliseconds;

    Parameters

    embeddingResult

    The MPPEmbeddingResult instance containing one set of results per classifier head.

    timestampInMilliseconds

    The timestamp (in millisecondss) for this result.

    Return Value

    An instance of MPPTextEmbedderResult initialized with the given MPPEmbeddingResult and timestamp (in milliseconds).

  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    + (instancetype)new NS_UNAVAILABLE;