SlideShare une entreprise Scribd logo
1  sur  21
Applicable BERT
Jiwon Kim Engineering Weekly 8
How can we
apply SOTA NLP
model to the
specific domain?
Can BERT be used in a
sentiment classification?
1. conda create -n bert python pytorch pandas
tqdm
conda install -c anaconda scikit-learn
(Just for safeness..)
1. pip install pytorch-pretrained-bert
(Thank you hugging face 🤗)
1. Prepare your data
2. Fine-tune the model with your data
Yes, of course
Just your target data, e.g., Yelp polarity data
Can BERT be used in a
Question-Answering?
Definitely
feat, pragnakalp
1. conda create -n bert python pytorch pandas
tqdm
conda install -c anaconda scikit-learn
(Just for safeness..)
1. pip install pytorch-pretrained-bert
(Thank you hugging face 🤗)
1. Prepare your data
2. Fine-tune the model with your data
Can BERT be used in a
chatbot?
1. conda create -n bert python pytorch pandas tqdm
conda install -c anaconda scikit-learn
(Just for safeness..)
1. pip install pytorch-pretrained-bert
(Thank you hugging face 🤗)
1. Prepare your data
2. Fine-tune the model with your data
Again….
Definitely
feat, pragnakalp
Can BERT be used in
sentence auto-completion?
Gmail’s Suggested Replies, Smart Compose & Google Search Autocomplete
What is autocompletion?
Sure you can use BERT!
1. conda create -n bert python pytorch pandas
tqdm
conda install -c anaconda scikit-learn
(Just for safeness..)
1. pip install pytorch-pretrained-bert
(Thank you hugging face 🤗)
1. Prepare your data
2. Fine-tune the model with your data
feat, Hugging face
Why suddenly GPT-2???? 🤗🤗🤗🤗 🤗
€ 40K
Review
BERT can be used as
● Sentiment(emotion) classification
● Question-Answering
● Chatbot
● Sentence auto-completion
SO……….
What is a BERT?
It would be way more long story…...
Concepts that you should know...
● Transformer, ELMo, GPT
● Transfer Learning from Supervised Data
● Embedding model(position embedding, segment embedding, token embedding)
● Pre-trained model
● Attention mechanism(e.g., Scaled Dot-Product Attention Multi-Head Attention)
● Semi-supervised sequence learning
● Position-wise Feed-Forward Networks
● And so on…...
Paper link 1
Paper link 2
Henry AI Labs
● BERT can be used at least….
○ Sentiment(emotion) classification
○ Question-Answering
○ Chatbot
○ Sentence auto-completion
● Feel free to ask me if you can’t find out the pre-made code.
● “Don’t try to understand everything what you use… just run the
code, and don’t go deep on theory.” - Jeremy Howard
● Still you want to understand theoretical background, let’s study.
Conclusion
Applicable bert

Contenu connexe

Similaire à Applicable bert

Machine Learning Techniques in Python Dissertation - Phdassistance
Machine Learning Techniques in Python Dissertation - PhdassistanceMachine Learning Techniques in Python Dissertation - Phdassistance
Machine Learning Techniques in Python Dissertation - PhdassistancePhD Assistance
 
TinyML: Machine Learning for Microcontrollers
TinyML: Machine Learning for MicrocontrollersTinyML: Machine Learning for Microcontrollers
TinyML: Machine Learning for MicrocontrollersRobert John
 
Generative AI by Salesforce Admin Group Dehradun
Generative AI by Salesforce Admin Group DehradunGenerative AI by Salesforce Admin Group Dehradun
Generative AI by Salesforce Admin Group DehradunkailashChandra95
 
MuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft Meetups
 
Meeting presentationV2.pptx
Meeting presentationV2.pptxMeeting presentationV2.pptx
Meeting presentationV2.pptxAbdelrhmanHany2
 
What is Python? (Silicon Valley CodeCamp 2014)
What is Python? (Silicon Valley CodeCamp 2014)What is Python? (Silicon Valley CodeCamp 2014)
What is Python? (Silicon Valley CodeCamp 2014)wesley chun
 
Cómo construir un chatbot inteligente sin morir en el intento
Cómo construir un chatbot inteligente sin morir en el intentoCómo construir un chatbot inteligente sin morir en el intento
Cómo construir un chatbot inteligente sin morir en el intentoFacultad de Informática UCM
 
AI hype or reality
AI  hype or realityAI  hype or reality
AI hype or realityAwantik Das
 
Machine Learning Introduction
Machine Learning Introduction Machine Learning Introduction
Machine Learning Introduction KritimPrasadKafle
 
Going beyond ‘Sorry, I didn’t get that’: building AI assistants that scale us...
Going beyond ‘Sorry, I didn’t get that’: building AI assistants that scale us...Going beyond ‘Sorry, I didn’t get that’: building AI assistants that scale us...
Going beyond ‘Sorry, I didn’t get that’: building AI assistants that scale us...Justina Petraitytė
 
Artificial Intellige by example.pdf
Artificial Intellige by example.pdfArtificial Intellige by example.pdf
Artificial Intellige by example.pdfsandipanpaul16
 
Puppet Camp Dallas 2014: How Puppet Ops Rolls
Puppet Camp Dallas 2014: How Puppet Ops RollsPuppet Camp Dallas 2014: How Puppet Ops Rolls
Puppet Camp Dallas 2014: How Puppet Ops RollsPuppet
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Safe Software
 
BERT Finetuning Webinar Presentation
BERT Finetuning Webinar PresentationBERT Finetuning Webinar Presentation
BERT Finetuning Webinar Presentationbhavesh_physics
 
Puppet@Citygrid - Julien Rottenberg - PuppetCamp LA '12
Puppet@Citygrid - Julien Rottenberg - PuppetCamp LA '12Puppet@Citygrid - Julien Rottenberg - PuppetCamp LA '12
Puppet@Citygrid - Julien Rottenberg - PuppetCamp LA '12Puppet
 

Similaire à Applicable bert (20)

Machine Learning Techniques in Python Dissertation - Phdassistance
Machine Learning Techniques in Python Dissertation - PhdassistanceMachine Learning Techniques in Python Dissertation - Phdassistance
Machine Learning Techniques in Python Dissertation - Phdassistance
 
TinyML: Machine Learning for Microcontrollers
TinyML: Machine Learning for MicrocontrollersTinyML: Machine Learning for Microcontrollers
TinyML: Machine Learning for Microcontrollers
 
Generative AI by Salesforce Admin Group Dehradun
Generative AI by Salesforce Admin Group DehradunGenerative AI by Salesforce Admin Group Dehradun
Generative AI by Salesforce Admin Group Dehradun
 
BERT
BERTBERT
BERT
 
MuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPT
 
Meeting presentationV2.pptx
Meeting presentationV2.pptxMeeting presentationV2.pptx
Meeting presentationV2.pptx
 
What is Python? (Silicon Valley CodeCamp 2014)
What is Python? (Silicon Valley CodeCamp 2014)What is Python? (Silicon Valley CodeCamp 2014)
What is Python? (Silicon Valley CodeCamp 2014)
 
Transformer Zoo
Transformer ZooTransformer Zoo
Transformer Zoo
 
Cómo construir un chatbot inteligente sin morir en el intento
Cómo construir un chatbot inteligente sin morir en el intentoCómo construir un chatbot inteligente sin morir en el intento
Cómo construir un chatbot inteligente sin morir en el intento
 
AI hype or reality
AI  hype or realityAI  hype or reality
AI hype or reality
 
Machine Learning Introduction
Machine Learning Introduction Machine Learning Introduction
Machine Learning Introduction
 
python training.docx
python training.docxpython training.docx
python training.docx
 
Python Open CV
Python Open CVPython Open CV
Python Open CV
 
Going beyond ‘Sorry, I didn’t get that’: building AI assistants that scale us...
Going beyond ‘Sorry, I didn’t get that’: building AI assistants that scale us...Going beyond ‘Sorry, I didn’t get that’: building AI assistants that scale us...
Going beyond ‘Sorry, I didn’t get that’: building AI assistants that scale us...
 
Artificial Intellige by example.pdf
Artificial Intellige by example.pdfArtificial Intellige by example.pdf
Artificial Intellige by example.pdf
 
Puppet Camp Dallas 2014: How Puppet Ops Rolls
Puppet Camp Dallas 2014: How Puppet Ops RollsPuppet Camp Dallas 2014: How Puppet Ops Rolls
Puppet Camp Dallas 2014: How Puppet Ops Rolls
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
 
BERT Finetuning Webinar Presentation
BERT Finetuning Webinar PresentationBERT Finetuning Webinar Presentation
BERT Finetuning Webinar Presentation
 
Puppet@Citygrid - Julien Rottenberg - PuppetCamp LA '12
Puppet@Citygrid - Julien Rottenberg - PuppetCamp LA '12Puppet@Citygrid - Julien Rottenberg - PuppetCamp LA '12
Puppet@Citygrid - Julien Rottenberg - PuppetCamp LA '12
 
The Best Talend Training From myTectra in Bangalore
The Best Talend Training From myTectra in BangaloreThe Best Talend Training From myTectra in Bangalore
The Best Talend Training From myTectra in Bangalore
 

Dernier

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 

Dernier (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

Applicable bert

  • 1. Applicable BERT Jiwon Kim Engineering Weekly 8
  • 2. How can we apply SOTA NLP model to the specific domain?
  • 3. Can BERT be used in a sentiment classification?
  • 4. 1. conda create -n bert python pytorch pandas tqdm conda install -c anaconda scikit-learn (Just for safeness..) 1. pip install pytorch-pretrained-bert (Thank you hugging face 🤗) 1. Prepare your data 2. Fine-tune the model with your data Yes, of course Just your target data, e.g., Yelp polarity data
  • 5.
  • 6. Can BERT be used in a Question-Answering?
  • 7. Definitely feat, pragnakalp 1. conda create -n bert python pytorch pandas tqdm conda install -c anaconda scikit-learn (Just for safeness..) 1. pip install pytorch-pretrained-bert (Thank you hugging face 🤗) 1. Prepare your data 2. Fine-tune the model with your data
  • 8. Can BERT be used in a chatbot?
  • 9. 1. conda create -n bert python pytorch pandas tqdm conda install -c anaconda scikit-learn (Just for safeness..) 1. pip install pytorch-pretrained-bert (Thank you hugging face 🤗) 1. Prepare your data 2. Fine-tune the model with your data Again….
  • 11. Can BERT be used in sentence auto-completion?
  • 12. Gmail’s Suggested Replies, Smart Compose & Google Search Autocomplete What is autocompletion?
  • 13. Sure you can use BERT! 1. conda create -n bert python pytorch pandas tqdm conda install -c anaconda scikit-learn (Just for safeness..) 1. pip install pytorch-pretrained-bert (Thank you hugging face 🤗) 1. Prepare your data 2. Fine-tune the model with your data feat, Hugging face
  • 14. Why suddenly GPT-2???? 🤗🤗🤗🤗 🤗
  • 16. Review BERT can be used as ● Sentiment(emotion) classification ● Question-Answering ● Chatbot ● Sentence auto-completion
  • 18. It would be way more long story…... Concepts that you should know... ● Transformer, ELMo, GPT ● Transfer Learning from Supervised Data ● Embedding model(position embedding, segment embedding, token embedding) ● Pre-trained model ● Attention mechanism(e.g., Scaled Dot-Product Attention Multi-Head Attention) ● Semi-supervised sequence learning ● Position-wise Feed-Forward Networks ● And so on…... Paper link 1 Paper link 2
  • 20. ● BERT can be used at least…. ○ Sentiment(emotion) classification ○ Question-Answering ○ Chatbot ○ Sentence auto-completion ● Feel free to ask me if you can’t find out the pre-made code. ● “Don’t try to understand everything what you use… just run the code, and don’t go deep on theory.” - Jeremy Howard ● Still you want to understand theoretical background, let’s study. Conclusion

Notes de l'éditeur

  1. https://youtu.be/OR0wfP2FD3c?t=97