SlideShare a Scribd company logo
1 of 14
Supercharging your web apps with
ML using MediaPipe
Google I/O Extended, Warri
The challenge
As a web developer, I will like to apply ML to my web applications
The Solution?
Google MediaPipe!
What is MediaPipe
● Created by Google in 2012
● To be used for processing Youtube videos for compliance
● Eventually expanded to other Google products like Google Home
● First announced publicly in 2019
● It is a cross-platform, open source framework
● With a low-code API
MediaPipe solutions
Vision Solutions Text Solutions
More at https://developers.google.com/mediapipe/solutions
Using MediaPipe in your web apps
Demo app: https://gdg-warri.netlify.app/
Description: A movie rating website, which uses Sentiment Analysis a branch of
Text Classification to categorize text with predefined labels, and in this case
“positive” or “negative”.
Give your review about a movie to try it out!
Text Classification
Text classification is an NLP task where algorithms automatically assign
predefined categories or labels to text documents based on their content.
Creating a Text Classifier in 3 steps
1. Install the @mediapipe/tasks-text package
2. Load WebAssembly files needed for the classification
3. Instantiate the TextClassifier with custom options
Step one:
Install the MediaPipe library just like any other JS library..
Step two:
Import the Web Assembly files MediaPipe needs to work on Text Tasks
modelAssetPath: Path to the model our classification is going to run on.
maxResults: The number of top results to return.
scoreThreshold: Percentage at which results should be returned
Text Classification models
● BERT-classifier model (recommended for performance)
● Average word embedding model
● …and yours!
Learn more: https://developers.google.com/mediapipe/solutions/text/text_classifier#models
About me
Connect with me
Samuel Olaegbe
Twitter: @devloader
Github: @goodhands
LinkedIn: Samuel Olaegbe
Telegram: https://t.me/samuelolaegbe
Blog: https://devloader.hashnode.dev/

More Related Content

Similar to Supercharging your web apps with ML using MediaPipe.pptx

Evaluation question (final1): 4
Evaluation question (final1): 4Evaluation question (final1): 4
Evaluation question (final1): 4jonathan randall
 
Jetpack compose session1 (1).pptx
Jetpack compose session1 (1).pptxJetpack compose session1 (1).pptx
Jetpack compose session1 (1).pptxShubhamJogdand8
 
Learn Django Tips, Tricks & Techniques for Developers
Learn Django Tips, Tricks & Techniques for DevelopersLearn Django Tips, Tricks & Techniques for Developers
Learn Django Tips, Tricks & Techniques for DevelopersMars Devs
 
Introduction to Google Cloud Endpoints: Speed Up Your API Development
Introduction to Google Cloud Endpoints: Speed Up Your API DevelopmentIntroduction to Google Cloud Endpoints: Speed Up Your API Development
Introduction to Google Cloud Endpoints: Speed Up Your API DevelopmentColin Su
 
How did you use media technologies in theconstruction, research, planning and...
How did you use media technologies in theconstruction, research, planning and...How did you use media technologies in theconstruction, research, planning and...
How did you use media technologies in theconstruction, research, planning and...vishal-s93
 
Gaining the app visibility that matters
Gaining the app visibility that mattersGaining the app visibility that matters
Gaining the app visibility that mattersPrajyot Mainkar
 
InMobi inDecode - Gaining App Visibility That Matters
InMobi inDecode - Gaining App Visibility That MattersInMobi inDecode - Gaining App Visibility That Matters
InMobi inDecode - Gaining App Visibility That MattersInMobi
 
Evaluation: Question Six
Evaluation: Question SixEvaluation: Question Six
Evaluation: Question Sixmillerjess
 
Getting SEO & Social Media Alignment Inside Your Organization by Warren Lee
Getting SEO & Social Media Alignment Inside Your Organization by Warren LeeGetting SEO & Social Media Alignment Inside Your Organization by Warren Lee
Getting SEO & Social Media Alignment Inside Your Organization by Warren LeeSearch Marketing Expo - SMX
 
How to Access and Use Gemini API for Free.pptx
How to Access and Use Gemini API for Free.pptxHow to Access and Use Gemini API for Free.pptx
How to Access and Use Gemini API for Free.pptxujjwalsoni23
 
Insights on Android App Development, Marketing and Monetization
Insights on Android App Development, Marketing and MonetizationInsights on Android App Development, Marketing and Monetization
Insights on Android App Development, Marketing and MonetizationJayneel Patel
 
Perspective presentation
Perspective presentationPerspective presentation
Perspective presentationOskar Hargedahl
 
Evaluation question: 4 (Updated)
Evaluation question: 4 (Updated)Evaluation question: 4 (Updated)
Evaluation question: 4 (Updated)jonathan randall
 
ICT I intend on using to create my trailer.
ICT I intend on using to create my trailer.ICT I intend on using to create my trailer.
ICT I intend on using to create my trailer.AjayFlyguy
 

Similar to Supercharging your web apps with ML using MediaPipe.pptx (20)

Evaluation question (final1): 4
Evaluation question (final1): 4Evaluation question (final1): 4
Evaluation question (final1): 4
 
Evaluation Question 4
Evaluation Question 4Evaluation Question 4
Evaluation Question 4
 
Evaluation 4
Evaluation 4Evaluation 4
Evaluation 4
 
Jetpack compose session1 (1).pptx
Jetpack compose session1 (1).pptxJetpack compose session1 (1).pptx
Jetpack compose session1 (1).pptx
 
Learn Django Tips, Tricks & Techniques for Developers
Learn Django Tips, Tricks & Techniques for DevelopersLearn Django Tips, Tricks & Techniques for Developers
Learn Django Tips, Tricks & Techniques for Developers
 
Evaluation Question: 4
Evaluation Question: 4Evaluation Question: 4
Evaluation Question: 4
 
Google IO 2018
Google IO 2018Google IO 2018
Google IO 2018
 
Introduction to Google Cloud Endpoints: Speed Up Your API Development
Introduction to Google Cloud Endpoints: Speed Up Your API DevelopmentIntroduction to Google Cloud Endpoints: Speed Up Your API Development
Introduction to Google Cloud Endpoints: Speed Up Your API Development
 
Evaluation 4
Evaluation 4Evaluation 4
Evaluation 4
 
How did you use media technologies in theconstruction, research, planning and...
How did you use media technologies in theconstruction, research, planning and...How did you use media technologies in theconstruction, research, planning and...
How did you use media technologies in theconstruction, research, planning and...
 
Gaining the app visibility that matters
Gaining the app visibility that mattersGaining the app visibility that matters
Gaining the app visibility that matters
 
InMobi inDecode - Gaining App Visibility That Matters
InMobi inDecode - Gaining App Visibility That MattersInMobi inDecode - Gaining App Visibility That Matters
InMobi inDecode - Gaining App Visibility That Matters
 
Evaluation: Question Six
Evaluation: Question SixEvaluation: Question Six
Evaluation: Question Six
 
Getting SEO & Social Media Alignment Inside Your Organization by Warren Lee
Getting SEO & Social Media Alignment Inside Your Organization by Warren LeeGetting SEO & Social Media Alignment Inside Your Organization by Warren Lee
Getting SEO & Social Media Alignment Inside Your Organization by Warren Lee
 
How to Access and Use Gemini API for Free.pptx
How to Access and Use Gemini API for Free.pptxHow to Access and Use Gemini API for Free.pptx
How to Access and Use Gemini API for Free.pptx
 
Insights on Android App Development, Marketing and Monetization
Insights on Android App Development, Marketing and MonetizationInsights on Android App Development, Marketing and Monetization
Insights on Android App Development, Marketing and Monetization
 
Evaluation question; 4
Evaluation question; 4Evaluation question; 4
Evaluation question; 4
 
Perspective presentation
Perspective presentationPerspective presentation
Perspective presentation
 
Evaluation question: 4 (Updated)
Evaluation question: 4 (Updated)Evaluation question: 4 (Updated)
Evaluation question: 4 (Updated)
 
ICT I intend on using to create my trailer.
ICT I intend on using to create my trailer.ICT I intend on using to create my trailer.
ICT I intend on using to create my trailer.
 

More from Samuel Olaegbe

ENABLING INCLUSIVE FINTECH IN THE NIGERIAN CAPITAL MARKET: A REGULATORS PERSP...
ENABLING INCLUSIVE FINTECH IN THE NIGERIAN CAPITAL MARKET: A REGULATORS PERSP...ENABLING INCLUSIVE FINTECH IN THE NIGERIAN CAPITAL MARKET: A REGULATORS PERSP...
ENABLING INCLUSIVE FINTECH IN THE NIGERIAN CAPITAL MARKET: A REGULATORS PERSP...Samuel Olaegbe
 
Regulatory framework for lending: State v. Federal perspectives
Regulatory framework for lending: State v. Federal perspectivesRegulatory framework for lending: State v. Federal perspectives
Regulatory framework for lending: State v. Federal perspectivesSamuel Olaegbe
 
How data analytics will drive the future of banking
How data analytics will drive the future of bankingHow data analytics will drive the future of banking
How data analytics will drive the future of bankingSamuel Olaegbe
 
BROADBAND PENETRATION IN NIGERIA
BROADBAND PENETRATION IN NIGERIABROADBAND PENETRATION IN NIGERIA
BROADBAND PENETRATION IN NIGERIASamuel Olaegbe
 
How Should Fintech be regulated?
How Should Fintech be regulated?How Should Fintech be regulated?
How Should Fintech be regulated?Samuel Olaegbe
 
Payment Services Bank; the challenger banks
Payment Services Bank; the challenger banksPayment Services Bank; the challenger banks
Payment Services Bank; the challenger banksSamuel Olaegbe
 
Embracing Open Banking as an Opportunity to Innovate, not just an Exercise in...
Embracing Open Banking as an Opportunity to Innovate, not just an Exercise in...Embracing Open Banking as an Opportunity to Innovate, not just an Exercise in...
Embracing Open Banking as an Opportunity to Innovate, not just an Exercise in...Samuel Olaegbe
 
Building infrastructure for_collaborative_fintech_3.0
Building infrastructure for_collaborative_fintech_3.0Building infrastructure for_collaborative_fintech_3.0
Building infrastructure for_collaborative_fintech_3.0Samuel Olaegbe
 

More from Samuel Olaegbe (8)

ENABLING INCLUSIVE FINTECH IN THE NIGERIAN CAPITAL MARKET: A REGULATORS PERSP...
ENABLING INCLUSIVE FINTECH IN THE NIGERIAN CAPITAL MARKET: A REGULATORS PERSP...ENABLING INCLUSIVE FINTECH IN THE NIGERIAN CAPITAL MARKET: A REGULATORS PERSP...
ENABLING INCLUSIVE FINTECH IN THE NIGERIAN CAPITAL MARKET: A REGULATORS PERSP...
 
Regulatory framework for lending: State v. Federal perspectives
Regulatory framework for lending: State v. Federal perspectivesRegulatory framework for lending: State v. Federal perspectives
Regulatory framework for lending: State v. Federal perspectives
 
How data analytics will drive the future of banking
How data analytics will drive the future of bankingHow data analytics will drive the future of banking
How data analytics will drive the future of banking
 
BROADBAND PENETRATION IN NIGERIA
BROADBAND PENETRATION IN NIGERIABROADBAND PENETRATION IN NIGERIA
BROADBAND PENETRATION IN NIGERIA
 
How Should Fintech be regulated?
How Should Fintech be regulated?How Should Fintech be regulated?
How Should Fintech be regulated?
 
Payment Services Bank; the challenger banks
Payment Services Bank; the challenger banksPayment Services Bank; the challenger banks
Payment Services Bank; the challenger banks
 
Embracing Open Banking as an Opportunity to Innovate, not just an Exercise in...
Embracing Open Banking as an Opportunity to Innovate, not just an Exercise in...Embracing Open Banking as an Opportunity to Innovate, not just an Exercise in...
Embracing Open Banking as an Opportunity to Innovate, not just an Exercise in...
 
Building infrastructure for_collaborative_fintech_3.0
Building infrastructure for_collaborative_fintech_3.0Building infrastructure for_collaborative_fintech_3.0
Building infrastructure for_collaborative_fintech_3.0
 

Recently uploaded

The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....ShaimaaMohamedGalal
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 

Recently uploaded (20)

The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 

Supercharging your web apps with ML using MediaPipe.pptx

  • 1. Supercharging your web apps with ML using MediaPipe Google I/O Extended, Warri
  • 2. The challenge As a web developer, I will like to apply ML to my web applications
  • 4. What is MediaPipe ● Created by Google in 2012 ● To be used for processing Youtube videos for compliance ● Eventually expanded to other Google products like Google Home ● First announced publicly in 2019 ● It is a cross-platform, open source framework ● With a low-code API
  • 5. MediaPipe solutions Vision Solutions Text Solutions More at https://developers.google.com/mediapipe/solutions
  • 6. Using MediaPipe in your web apps Demo app: https://gdg-warri.netlify.app/ Description: A movie rating website, which uses Sentiment Analysis a branch of Text Classification to categorize text with predefined labels, and in this case “positive” or “negative”. Give your review about a movie to try it out!
  • 7. Text Classification Text classification is an NLP task where algorithms automatically assign predefined categories or labels to text documents based on their content.
  • 8. Creating a Text Classifier in 3 steps 1. Install the @mediapipe/tasks-text package 2. Load WebAssembly files needed for the classification 3. Instantiate the TextClassifier with custom options
  • 9. Step one: Install the MediaPipe library just like any other JS library..
  • 10. Step two: Import the Web Assembly files MediaPipe needs to work on Text Tasks
  • 11. modelAssetPath: Path to the model our classification is going to run on. maxResults: The number of top results to return. scoreThreshold: Percentage at which results should be returned
  • 12. Text Classification models ● BERT-classifier model (recommended for performance) ● Average word embedding model ● …and yours! Learn more: https://developers.google.com/mediapipe/solutions/text/text_classifier#models
  • 14. Connect with me Samuel Olaegbe Twitter: @devloader Github: @goodhands LinkedIn: Samuel Olaegbe Telegram: https://t.me/samuelolaegbe Blog: https://devloader.hashnode.dev/

Editor's Notes

  1. Facial detection Object identification Gesture detection Facial posture Face Landmark Detection Text classification Language detection
  2. You could use the remote URL to the model instead: https://storage.googleapis.com/mediapipe-models/text_classifier/bert_classifier/float32/latest/bert_classifier.tflite
  3. BERT-classifier model; This model uses a BERT-based architecture (specifically, the MobileBERT model) and is recommended because of its high accuracy. It contains metadata that allows the task to perform out-of-graph BERT tokenization. - Bidirectional Encoder Representations from Transformers Average word embedding model: This model uses an average word-embedding architecture. This model offers a smaller model size and lower latency at the cost of a lower prediction accuracy compared to the BERT-classifier. Customizing this model through additional training is also faster than doing training of the BERT-based classifier. This model contains metadata that allows the task to perform out-of-graph regex tokenization.