Overview of MediaPipe Tasks Text Embedder Android Demo
mainThis Android application demonstrates how to compare the similarity between two texts using MediaPipe Tasks. It supports two model options:
- Mobile Bert: Uses
mobilebert_embedding_with_metadata.tflite. - Average word-embedding: Uses
regex_embedder_with_metadata.tflite.
Model Management:
- Automatic: A Gradle script (
download.gradle) automatically downloads and extracts the models into the app'sassetsdirectory during the build process. - Custom Models: If you want to use your own models, manually place the
.tflitefiles into the app'sassetsdirectory.