0.10.16 • Published 8 months ago

@mediapipe/tasks-text v0.10.16

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
8 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.15-rc.20240830

10 months ago

0.10.15-rc.20240831

10 months ago

0.10.15-rc.20240828

10 months ago

0.10.15-rc.20240829

10 months ago

0.10.15

10 months ago

0.10.16

9 months ago

0.10.15-rc.20240901

10 months ago

0.10.15-rc.20240902

10 months ago

0.10.15-rc.20240827

10 months ago

0.10.15-rc.20240710

12 months ago

0.10.15-rc.20240711

12 months ago

0.10.15-rc.20240712

12 months ago

0.10.15-rc.20240713

12 months ago

0.10.15-rc.20240714

11 months ago

0.10.15-rc.20240715

11 months ago

0.10.15-rc.20240716

11 months ago

0.10.15-rc.20240717

11 months ago

0.10.15-rc.20240718

11 months ago

0.10.15-rc.20240719

11 months ago

0.10.15-rc.20240720

11 months ago

0.10.15-rc.20240721

11 months ago

0.10.15-rc.20240722

11 months ago

0.10.15-rc.20240723

11 months ago

0.10.15-rc.20240724

11 months ago

0.10.15-rc.20240725

11 months ago

0.10.15-rc.20240726

11 months ago

0.10.15-rc.20240727

11 months ago

0.10.15-rc.20240728

11 months ago

0.10.15-rc.20240729

11 months ago

0.10.15-rc.20240810

11 months ago

0.10.15-rc.20240811

11 months ago

0.10.15-rc.20240812

11 months ago

0.10.15-rc.20240813

10 months ago

0.10.15-rc.20240814

10 months ago

0.10.15-rc.20240815

10 months ago

0.10.15-rc.20240816

10 months ago

0.10.15-rc.20240817

10 months ago

0.10.15-rc.20240818

10 months ago

0.10.15-rc.20240819

10 months ago

0.10.15-rc.20240820

10 months ago

0.10.15-rc.20240821

10 months ago

0.10.15-rc.20240822

10 months ago

0.10.15-rc.20240823

10 months ago

0.10.15-rc.20240702

12 months ago

0.10.15-rc.20240824

10 months ago

0.10.15-rc.20240703

12 months ago

0.10.15-rc.20240825

10 months ago

0.10.15-rc.20240704

12 months ago

0.10.15-rc.20240826

10 months ago

0.10.15-rc.20240705

12 months ago

0.10.15-rc.20240706

12 months ago

0.10.15-rc.20240707

12 months ago

0.10.15-rc.20240708

12 months ago

0.10.15-rc.20240709

12 months ago

0.10.15-rc.20240801

11 months ago

0.10.15-rc.20240802

11 months ago

0.10.15-rc.20240803

11 months ago

0.10.15-rc.20240804

11 months ago

0.10.15-rc.20240805

11 months ago

0.10.15-rc.20240806

11 months ago

0.10.15-rc.20240807

11 months ago

0.10.15-rc.20240808

11 months ago

0.10.15-rc.20240809

11 months ago

0.10.15-rc.20240730

11 months ago

0.10.15-rc.20240731

11 months ago

0.10.15-rc.20240624

12 months ago

0.10.15-rc.20240625

12 months ago

0.10.14

1 year ago

0.10.13

1 year ago

0.10.12

1 year ago

0.10.11

1 year ago

0.10.10

1 year ago

0.10.9

2 years ago

20230919.0.0

2 years ago

0.10.2

2 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

2 years ago

0.1.0-alpha-14

2 years ago

0.1.0-alpha-17

2 years ago

0.1.0-alpha-16

2 years ago

0.10.1

2 years ago

0.10.2-rc1

2 years ago

0.10.2-rc2

2 years ago

0.10.0

2 years ago

0.1.0-alpha-11

2 years ago

0.1.0-alpha-10

2 years ago

0.1.0-alpha-13

2 years ago

0.1.0-alpha-12

2 years ago

0.1.0-alpha-8

2 years ago

0.1.0-alpha-7

2 years ago

0.1.0-alpha-9

2 years ago

0.1.0-alpha-6

2 years ago

0.1.0-alpha-5

2 years ago

0.1.0-alpha-4

2 years ago

0.1.0-alpha-3

2 years ago

0.1.0-alpha-2

2 years ago

0.1.0-alpha-1

3 years ago