SlideShare a Scribd company logo
Natural Language Processing
(NPL)
Yuyun
Reference:
Natural Language Annotation for Machine Learning
by James Pustejovsky & Amber Stubbs (2012)
MACHINE LEARNING
Machine Learning, supervised learning
80% 20%
TRAINING TESTING
-Training model AI
- Data untuk AI Belajar
-Mengukur akurasi AI
-Menguji akurasi AI Belajar
Tidak boleh
menggunakan data
yang sama dengan
data training!
Bagaimana
mengetahui kalau
AI kita benar-benar
mengerti
?
Machine Learning, supervised learning
DATA TRAINING
SUPERVISED LEARNING
DATA TESTING
DATA VALIDATION TESTING
Untuk mengetahui performa dari
suatu model algoritma dengan
melakukan percobaan
sebanyak k kali
Untuk menningkatkan
tingkat performansi
dari model tersebut
Untuk mengolah data
set dengan kelas yang
seimbang
Cross Validation
Fungsi dari penggunaan metode cross validation adalah
Machine Learning data validation
K-fold Cross Validation
TRAINING VALIDATION TEST TESTING
Validasi Silang
Misalnya jumlah dataset, N=100 K-fold, K?
K
Iterations
(K-Folds)
TRAINING
FOLD
VALIDATION
FOLD
Performance 1
Performance 2
Performance 3
Performance 4
Performance 5
Machine Learning data validation
K
Iterations
(K-Folds)
TRAINING
FOLD
VALIDATION
FOLD
Performance 1
Performance 2
Performance 3
Performance 4
Performance 5
Training 1, partisi pertama menjadi data testing dan partisi lainnya menjadi data training.
Training 2, partisi kedua menjadi data testing dan partisi lainnya menjadi data training.
Training 3, partisi ketiga menjadi data testing dan partisi lainnya menjadi data training
Training 4, partisi keempat menjadi data testing dan partisi lainnya menjadi data training
Training 5, partisi kelima menjadi data testing dan partisi lainnya menjadi data training
Berdasarkan 5 hasil percobaan, kemudian dievaluasi nilai performa
model menggunakan confution matriks. Berikutnya dilanjutkan
dengan menghitung nilai rata-rata dari setiap percobaan
The Basics: The Importance of Language Annotation
The Web
contains
information in
all forms of
media—
including texts,
images, movies,
and sounds—
and language is
the
communication
medium that
allows people
to understand
the content,
and to link the
content to
other media
The Importance of Language Annotation
The Web contains information
in all forms of media—including
texts, images, movies, and
sounds—and language is the
communication medium that
allows people to understand the
content, and to link the content
to other media
The Layers of Linguistic Description
What Is Natural Language Processing?
Steps of Machine Learning Text
Nhan Cach Dang (2020)
Pre-processing Text
The data obtained from
the crawling results are
still unstructured. For
example, it still has high
dimensions and there is
noise[47]. The document
is usually in the form of
letters and punctuation
marks. For example,
letters must be
standardized by changing
to uppercase or lowercase
letters. Therefore, we need
a process that can change
the form of unstructured
sentences[48], this term is
called text cleaning. The
purpose of pre-processing
is to clean data from noise,
have smaller dimensions,
and be more structured.
Pre-processing Text, 1. Tokenizing
Memotong String input
berdasarkan tiap kata yang
meyusunya
Pre-processing Text, 2. Filtering
Mengambil kata-kata yang
penting dari hasil tokenisasi. Alg
yg biasa digunakan adalah stop
list yaitu menghilangkan kata-
kata yang tidak penting)
Pre-processing Text, 3. Stemming
Mencari root kata dari tiap kata
hasil filtering. Merubah kata
menjadi kata dasar
Pre-processing Text, 4. Spelling Correction
Memperbaiki bentuk kata,
misalnya karena typo
Sekian
• Next is Word Embeddings

More Related Content

Recently uploaded

Modul Ajar Seni Rupa - Melukis Pemandangan - Fase B.pdf
Modul Ajar Seni Rupa - Melukis Pemandangan  - Fase B.pdfModul Ajar Seni Rupa - Melukis Pemandangan  - Fase B.pdf
Modul Ajar Seni Rupa - Melukis Pemandangan - Fase B.pdf
MiliaSumendap
 
Konsep dasar asuhan neonatus ,bayi dan balita
Konsep dasar asuhan neonatus ,bayi dan balitaKonsep dasar asuhan neonatus ,bayi dan balita
Konsep dasar asuhan neonatus ,bayi dan balita
Dilasambong
 
Kisi-Kisi Asesmen Madrasah Akidah Akhlak MTs Arridho Tahun Pelajaran 2023-202...
Kisi-Kisi Asesmen Madrasah Akidah Akhlak MTs Arridho Tahun Pelajaran 2023-202...Kisi-Kisi Asesmen Madrasah Akidah Akhlak MTs Arridho Tahun Pelajaran 2023-202...
Kisi-Kisi Asesmen Madrasah Akidah Akhlak MTs Arridho Tahun Pelajaran 2023-202...
mtsarridho
 
PERATURAN BUPATI TENTANG KODE KLASIFIKASI ARSIP
PERATURAN BUPATI TENTANG KODE KLASIFIKASI ARSIPPERATURAN BUPATI TENTANG KODE KLASIFIKASI ARSIP
PERATURAN BUPATI TENTANG KODE KLASIFIKASI ARSIP
Pemdes Wonoyoso
 
Pertemuan 9 - PERT CPM.pdfPertemuan 9 - PERT CPM.pdf
Pertemuan 9 - PERT CPM.pdfPertemuan 9 - PERT CPM.pdfPertemuan 9 - PERT CPM.pdfPertemuan 9 - PERT CPM.pdf
Pertemuan 9 - PERT CPM.pdfPertemuan 9 - PERT CPM.pdf
idoer11
 
CONTOH CATATAN OBSERVASI KEPALA SEKOLAH.docx
CONTOH CATATAN OBSERVASI KEPALA SEKOLAH.docxCONTOH CATATAN OBSERVASI KEPALA SEKOLAH.docx
CONTOH CATATAN OBSERVASI KEPALA SEKOLAH.docx
WagKuza
 
Pulupugbglueysoyaoyatiaitstisitatjsigsktstj.pdf
Pulupugbglueysoyaoyatiaitstisitatjsigsktstj.pdfPulupugbglueysoyaoyatiaitstisitatjsigsktstj.pdf
Pulupugbglueysoyaoyatiaitstisitatjsigsktstj.pdf
MRoyanzainuddin9A
 
manajer lapangan pelaksana gedung SKK JENJANG 6
manajer lapangan pelaksana gedung SKK JENJANG 6manajer lapangan pelaksana gedung SKK JENJANG 6
manajer lapangan pelaksana gedung SKK JENJANG 6
MhdFadliansyah1
 

Recently uploaded (8)

Modul Ajar Seni Rupa - Melukis Pemandangan - Fase B.pdf
Modul Ajar Seni Rupa - Melukis Pemandangan  - Fase B.pdfModul Ajar Seni Rupa - Melukis Pemandangan  - Fase B.pdf
Modul Ajar Seni Rupa - Melukis Pemandangan - Fase B.pdf
 
Konsep dasar asuhan neonatus ,bayi dan balita
Konsep dasar asuhan neonatus ,bayi dan balitaKonsep dasar asuhan neonatus ,bayi dan balita
Konsep dasar asuhan neonatus ,bayi dan balita
 
Kisi-Kisi Asesmen Madrasah Akidah Akhlak MTs Arridho Tahun Pelajaran 2023-202...
Kisi-Kisi Asesmen Madrasah Akidah Akhlak MTs Arridho Tahun Pelajaran 2023-202...Kisi-Kisi Asesmen Madrasah Akidah Akhlak MTs Arridho Tahun Pelajaran 2023-202...
Kisi-Kisi Asesmen Madrasah Akidah Akhlak MTs Arridho Tahun Pelajaran 2023-202...
 
PERATURAN BUPATI TENTANG KODE KLASIFIKASI ARSIP
PERATURAN BUPATI TENTANG KODE KLASIFIKASI ARSIPPERATURAN BUPATI TENTANG KODE KLASIFIKASI ARSIP
PERATURAN BUPATI TENTANG KODE KLASIFIKASI ARSIP
 
Pertemuan 9 - PERT CPM.pdfPertemuan 9 - PERT CPM.pdf
Pertemuan 9 - PERT CPM.pdfPertemuan 9 - PERT CPM.pdfPertemuan 9 - PERT CPM.pdfPertemuan 9 - PERT CPM.pdf
Pertemuan 9 - PERT CPM.pdfPertemuan 9 - PERT CPM.pdf
 
CONTOH CATATAN OBSERVASI KEPALA SEKOLAH.docx
CONTOH CATATAN OBSERVASI KEPALA SEKOLAH.docxCONTOH CATATAN OBSERVASI KEPALA SEKOLAH.docx
CONTOH CATATAN OBSERVASI KEPALA SEKOLAH.docx
 
Pulupugbglueysoyaoyatiaitstisitatjsigsktstj.pdf
Pulupugbglueysoyaoyatiaitstisitatjsigsktstj.pdfPulupugbglueysoyaoyatiaitstisitatjsigsktstj.pdf
Pulupugbglueysoyaoyatiaitstisitatjsigsktstj.pdf
 
manajer lapangan pelaksana gedung SKK JENJANG 6
manajer lapangan pelaksana gedung SKK JENJANG 6manajer lapangan pelaksana gedung SKK JENJANG 6
manajer lapangan pelaksana gedung SKK JENJANG 6
 

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago
 

Featured (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

1. Pengantar NLP.pdf

  • 1. Natural Language Processing (NPL) Yuyun Reference: Natural Language Annotation for Machine Learning by James Pustejovsky & Amber Stubbs (2012) MACHINE LEARNING
  • 2. Machine Learning, supervised learning 80% 20% TRAINING TESTING -Training model AI - Data untuk AI Belajar -Mengukur akurasi AI -Menguji akurasi AI Belajar Tidak boleh menggunakan data yang sama dengan data training! Bagaimana mengetahui kalau AI kita benar-benar mengerti ?
  • 3. Machine Learning, supervised learning DATA TRAINING SUPERVISED LEARNING DATA TESTING DATA VALIDATION TESTING Untuk mengetahui performa dari suatu model algoritma dengan melakukan percobaan sebanyak k kali Untuk menningkatkan tingkat performansi dari model tersebut Untuk mengolah data set dengan kelas yang seimbang Cross Validation Fungsi dari penggunaan metode cross validation adalah
  • 4. Machine Learning data validation K-fold Cross Validation TRAINING VALIDATION TEST TESTING Validasi Silang Misalnya jumlah dataset, N=100 K-fold, K? K Iterations (K-Folds) TRAINING FOLD VALIDATION FOLD Performance 1 Performance 2 Performance 3 Performance 4 Performance 5
  • 5. Machine Learning data validation K Iterations (K-Folds) TRAINING FOLD VALIDATION FOLD Performance 1 Performance 2 Performance 3 Performance 4 Performance 5 Training 1, partisi pertama menjadi data testing dan partisi lainnya menjadi data training. Training 2, partisi kedua menjadi data testing dan partisi lainnya menjadi data training. Training 3, partisi ketiga menjadi data testing dan partisi lainnya menjadi data training Training 4, partisi keempat menjadi data testing dan partisi lainnya menjadi data training Training 5, partisi kelima menjadi data testing dan partisi lainnya menjadi data training Berdasarkan 5 hasil percobaan, kemudian dievaluasi nilai performa model menggunakan confution matriks. Berikutnya dilanjutkan dengan menghitung nilai rata-rata dari setiap percobaan
  • 6. The Basics: The Importance of Language Annotation The Web contains information in all forms of media— including texts, images, movies, and sounds— and language is the communication medium that allows people to understand the content, and to link the content to other media
  • 7. The Importance of Language Annotation The Web contains information in all forms of media—including texts, images, movies, and sounds—and language is the communication medium that allows people to understand the content, and to link the content to other media
  • 8. The Layers of Linguistic Description
  • 9. What Is Natural Language Processing?
  • 10. Steps of Machine Learning Text Nhan Cach Dang (2020)
  • 11. Pre-processing Text The data obtained from the crawling results are still unstructured. For example, it still has high dimensions and there is noise[47]. The document is usually in the form of letters and punctuation marks. For example, letters must be standardized by changing to uppercase or lowercase letters. Therefore, we need a process that can change the form of unstructured sentences[48], this term is called text cleaning. The purpose of pre-processing is to clean data from noise, have smaller dimensions, and be more structured.
  • 12. Pre-processing Text, 1. Tokenizing Memotong String input berdasarkan tiap kata yang meyusunya
  • 13. Pre-processing Text, 2. Filtering Mengambil kata-kata yang penting dari hasil tokenisasi. Alg yg biasa digunakan adalah stop list yaitu menghilangkan kata- kata yang tidak penting)
  • 14. Pre-processing Text, 3. Stemming Mencari root kata dari tiap kata hasil filtering. Merubah kata menjadi kata dasar
  • 15. Pre-processing Text, 4. Spelling Correction Memperbaiki bentuk kata, misalnya karena typo
  • 16. Sekian • Next is Word Embeddings