tasks-text package
Stay organized with collections
Save and categorize content based on your preferences.
Classes
| Class |
Description |
| FilesetResolver |
Resolves the files required for the MediaPipe Task APIs.This class verifies whether SIMD is supported in the current environment and loads the SIMD files only if support is detected. The returned filesets require that the Wasm files are published without renaming. If this is not possible, you can invoke the MediaPipe Tasks APIs using a manually created WasmFileset. |
| LanguageDetector |
Predicts the language of an input text. |
| TextClassifier |
Performs Natural Language classification. |
| TextEmbedder |
Performs embedding extraction on text. |
| TextProofreader |
Performs text proofreading and grammar correction on input text. |
| TextSummarizer |
Performs text summarization on input text. |
Interfaces
Type Aliases
| Type Alias |
Description |
| TextEmbeddingTextRole |
Role of the text when formatting embeddings ('QUERY' or 'DOCUMENT'; also exported as TextRole). |
| TextEmbeddingType |
Task type for formatting text embeddings (such as 'RETRIEVAL_QUERY', 'RETRIEVAL_DOCUMENT', 'SEMANTIC_SIMILARITY', etc.). |
| TextProofreaderCorrectionType |
Edit operation type for a proofreading diff segment ('SAME', 'INSERTION', or 'DELETION'; also exported as CorrectionType). |
| TextSummarizerMode |
Summarization style mode ('TLDR' or 'KEYPOINTS'; also exported as SummarizationMode). |
| TextSummarizerResult |
The summarized text output returned by TextSummarizer. |
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 2026-11-05 UTC.
[null,null,["Last updated 2026-11-05 UTC."],[],[]]