<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google-ai-edge/mediapipe/blob/master/mediapipe/tasks/python/text/text_embedder.py#L72-L92) |

Formatting options for Gecko embeddings.

    mp.tasks.text.TextEmbeddingFormatContext(
        task_type: https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextEmbeddingType,
        title: Optional[str] = None,
        role: https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextEmbeddingTextRole = https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextEmbeddingFormatContext#role
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `task_type` | The embedding type. |
| `title` | The title of the text. |
| `role` | The role of the text. |

<br />

## Methods

### `to_ctypes`

[View source](https://github.com/google-ai-edge/mediapipe/blob/master/mediapipe/tasks/python/text/text_embedder.py#L86-L92)

    to_ctypes() -> _MpTextFormatContextC

Generates a ctypes _MpTextFormatContextC object.

### `__eq__`

    __eq__(
        other
    )

Return self==value.

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| role | `<TextRole.QUERY: 1>` |
| title | `None` |

<br />