@mediapipe/tasks-text 0.1.0-alpha-12 → 0.1.0-alpha-13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/text.d.ts +7 -7
- package/text_bundle.js +1 -1
- package/wasm/text_wasm_internal.js +510 -550
- package/wasm/text_wasm_internal.wasm +0 -0
- package/wasm/text_wasm_nosimd_internal.js +510 -550
- package/wasm/text_wasm_nosimd_internal.wasm +0 -0
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ const text = await FilesetResolver.forTextTasks(
|
|
|
28
28
|
const textClassifier = await TextClassifier.createFromModelPath(text,
|
|
29
29
|
"https://storage.googleapis.com/mediapipe-tasks/text_classifier/bert_text_classifier.tflite"
|
|
30
30
|
);
|
|
31
|
-
const classifications = textClassifier.
|
|
31
|
+
const classifications = textClassifier.classify(textData);
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
For more information, refer to the [Text Classification](https://developers.google.com/mediapipe/solutions/text/text_classifier/web_js) documentation.
|
package/package.json
CHANGED
package/text.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2022 The MediaPipe Authors.
|
|
2
|
+
* Copyright 2022 The MediaPipe Authors.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -30,7 +30,7 @@ declare interface BaseOptions_2 {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
* Copyright 2022 The MediaPipe Authors.
|
|
33
|
+
* Copyright 2022 The MediaPipe Authors.
|
|
34
34
|
*
|
|
35
35
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
36
36
|
* you may not use this file except in compliance with the License.
|
|
@@ -84,7 +84,7 @@ export declare interface Classifications {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
|
-
* Copyright 2022 The MediaPipe Authors.
|
|
87
|
+
* Copyright 2022 The MediaPipe Authors.
|
|
88
88
|
*
|
|
89
89
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
90
90
|
* you may not use this file except in compliance with the License.
|
|
@@ -127,7 +127,7 @@ declare interface ClassifierOptions {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
|
-
* Copyright 2022 The MediaPipe Authors.
|
|
130
|
+
* Copyright 2022 The MediaPipe Authors.
|
|
131
131
|
*
|
|
132
132
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
133
133
|
* you may not use this file except in compliance with the License.
|
|
@@ -160,7 +160,7 @@ declare interface EmbedderOptions {
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
|
-
* Copyright 2022 The MediaPipe Authors.
|
|
163
|
+
* Copyright 2022 The MediaPipe Authors.
|
|
164
164
|
*
|
|
165
165
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
166
166
|
* you may not use this file except in compliance with the License.
|
|
@@ -309,7 +309,7 @@ export declare interface LanguageDetectorOptions extends ClassifierOptions, Task
|
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
/**
|
|
312
|
-
* Copyright 2022 The MediaPipe Authors.
|
|
312
|
+
* Copyright 2022 The MediaPipe Authors.
|
|
313
313
|
*
|
|
314
314
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
315
315
|
* you may not use this file except in compliance with the License.
|
|
@@ -506,7 +506,7 @@ export declare interface TextEmbedderResult {
|
|
|
506
506
|
}
|
|
507
507
|
|
|
508
508
|
/**
|
|
509
|
-
* Copyright 2022 The MediaPipe Authors.
|
|
509
|
+
* Copyright 2022 The MediaPipe Authors.
|
|
510
510
|
*
|
|
511
511
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
512
512
|
* you may not use this file except in compliance with the License.
|