<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/__init__.py) |

MediaPipe Tasks Text API.

## Classes

[`class LanguageDetector`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/LanguageDetector.md.txt): Class that predicts the language of an input text.

[`class LanguageDetectorOptions`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/LanguageDetectorOptions.md.txt): Options for the language detector task.

[`class LanguageDetectorResult`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/LanguageDetectorResult.md.txt): The language detection result.

[`class TextClassifier`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextClassifier.md.txt): Class that performs classification on text.

[`class TextClassifierOptions`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextClassifierOptions.md.txt): Options for the text classifier task.

[`class TextClassifierResult`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextClassifierResult.md.txt): Contains the classification results of a model.

[`class TextEmbedder`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextEmbedder.md.txt): Class that performs embedding extraction on text.

[`class TextEmbedderOptions`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextEmbedderOptions.md.txt): Options for the text embedder task.

[`class TextEmbedderResult`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextEmbedderResult.md.txt): Embedding results for a given embedder model.

[`class TextEmbeddingFormatContext`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextEmbeddingFormatContext.md.txt): Formatting options for Gecko embeddings.

[`class TextEmbeddingTextRole`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextEmbeddingTextRole.md.txt): The role of the text in the context of the embedding task.

[`class TextEmbeddingType`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextEmbeddingType.md.txt): The embedding type of Gecko embeddings.

[`class TextProofreader`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextProofreader.md.txt): Performs proofreading on text.

[`class TextProofreaderCorrection`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextProofreaderCorrection.md.txt): A single correction.

[`class TextProofreaderCorrectionType`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextProofreaderCorrectionType.md.txt): The type of correction.

[`class TextProofreaderOptions`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextProofreaderOptions.md.txt): Options for the text proofreader task.

[`class TextProofreaderResult`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextProofreaderResult.md.txt): Result of the text proofreader task.

[`class TextSummarizer`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextSummarizer.md.txt): Performs summarization on text.

[`class TextSummarizerMode`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextSummarizerMode.md.txt): The mode of the text summarizer.

[`class TextSummarizerOptions`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextSummarizerOptions.md.txt): Options for the text summarizer task.

[`class TextSummarizerResult`](https://developers.google.com/edge/api/mediapipe/python/mp/tasks/text/TextSummarizerResult.md.txt): Result of the text summarizer task.