<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.

```python
mp.tasks.text.TextEmbeddingFormatContext(
    task_type: `mp.tasks.text.TextEmbeddingType`,
    title: Optional[str] = None,
    role: `mp.tasks.text.TextEmbeddingTextRole` = `mp.tasks.text.TextEmbeddingTextRole.QUERY`
)
```

<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)

```python
to_ctypes() -> _MpTextFormatContextC
```

Generates a ctypes _MpTextFormatContextC object.

### `__eq__`

```python
__eq__(
    other
)
```

Return self==value.

<br />

<br />

<br />

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

<br />