0.10.22-rc.20250304 • Published 11 months ago

@mediapipe/tasks-text v0.10.22-rc.20250304

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
11 months ago

MediaPipe Tasks Text Package

This package contains the text tasks for MediaPipe.

Language Detector

The MediaPipe Language Detector task predicts the language of an input text.

const text = await FilesetResolver.forTextTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-text/wasm"
);
const languageDetector = await LanguageDetector.createFromModelPath(text,
    "https://storage.googleapis.com/mediapipe-models/language_detector/language_detector/float32/1/language_detector.tflite
);
const result = languageDetector.detect(textData);

For more information, refer to the Language Detector documentation.

Text Classifier

The MediaPipe Text Classifier task lets you classify text into a set of defined categories, such as positive or negative sentiment.

const text = await FilesetResolver.forTextTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-text/wasm"
);
const textClassifier = await TextClassifier.createFromModelPath(text,
    "https://storage.googleapis.com/mediapipe-models/text_classifier/bert_classifier/float32/1/bert_classifier.tflite"
);
const classifications = textClassifier.classify(textData);

For more information, refer to the Text Classification documentation.

Text Embedder

The MediaPipe Text Embedder task extracts embeddings from text data.

const text = await FilesetResolver.forTextTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-text/wasm"
);
const textEmbedder = await TextEmbedder.createFromModelPath(text,
    "https://storage.googleapis.com/mediapipe-models/text_embedder/universal_sentence_encoder/float32/1/universal_sentence_encoder.tflite"
);
const embeddings = textEmbedder.embed(textData);

For more information, refer to the Text Embedder documentation.

0.10.18

1 year ago

0.10.19

1 year ago

0.10.20

1 year ago

0.10.21

11 months ago

0.10.22-rc.20250304

11 months ago

0.10.21-rc.20250131

12 months ago

0.10.21-rc.20250129

12 months ago

0.10.21-rc.20250128

12 months ago

0.10.21-rc.20250121

12 months ago

0.10.21-rc.20250120

12 months ago

0.10.21-rc.20250123

12 months ago

0.10.21-rc.20250122

12 months ago

0.10.21-rc.20250125

12 months ago

0.10.21-rc.20250124

12 months ago

0.10.21-rc.20250127

12 months ago

0.10.21-rc.20250126

12 months ago

0.10.21-rc.20250130

12 months ago

0.10.21-rc.20250118

12 months ago

0.10.21-rc.20250117

12 months ago

0.10.21-rc.20250119

12 months ago

0.10.21-rc.20250206

11 months ago

0.10.21-rc.20250205

12 months ago

0.10.21-rc.20250202

12 months ago

0.10.21-rc.20250201

12 months ago

0.10.21-rc.20250204

12 months ago

0.10.21-rc.20250203

12 months ago

0.10.15

1 year ago

0.10.16

1 year ago

0.10.14

2 years ago

0.10.13

2 years ago

0.10.12

2 years ago

0.10.11

2 years ago

0.10.10

2 years ago

0.10.9

2 years ago

20230919.0.0

2 years ago

0.10.2

3 years ago

0.10.3

2 years ago

0.10.4

2 years ago

0.10.5

2 years ago

0.10.6

2 years ago

0.10.7

2 years ago

0.10.8

2 years ago

20230920.0.0

2 years ago

0.1.0-alpha-15

3 years ago

0.1.0-alpha-14

3 years ago

0.1.0-alpha-17

3 years ago

0.1.0-alpha-16

3 years ago

0.10.1

3 years ago

0.10.2-rc1

3 years ago

0.10.2-rc2

3 years ago

0.10.0

3 years ago

0.1.0-alpha-11

3 years ago

0.1.0-alpha-10

3 years ago

0.1.0-alpha-13

3 years ago

0.1.0-alpha-12

3 years ago

0.1.0-alpha-8

3 years ago

0.1.0-alpha-7

3 years ago

0.1.0-alpha-9

3 years ago

0.1.0-alpha-6

3 years ago

0.1.0-alpha-5

3 years ago

0.1.0-alpha-4

3 years ago

0.1.0-alpha-3

3 years ago

0.1.0-alpha-2

3 years ago

0.1.0-alpha-1

3 years ago