<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#L53-L59) |

The role of the text in the context of the embedding task.

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| DOCUMENT | `<TextRole.DOCUMENT: 2>` |
| QUERY | `<TextRole.QUERY: 1>` |

<br />