Introducing Google AI Edge Portal: Benchmark Edge AI at scale. Sign-up to request access during private preview.

MediaPipeTasksText Framework Reference

TextEmbedderResult

class TextEmbedderResult : TaskResult 

Represents the embedding results generated by MPPTextEmbedder. *

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

    Declaration

    Swift

    var embeddingResult: EmbeddingResult  { get }
  • Initializes a new MPPTextEmbedderResult with the given MPPEmbeddingResult and timestamp (in milliseconds).

    Declaration

    Swift

    init(embeddingResult: EmbeddingResult , timestampInMilliseconds: Int)

    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

  • Undocumented

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年05月08日 UTC.