Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Facebook Dev-C Meetup| NLP & Architecture
Search
_luay
October 27, 2017
Programming
26
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Facebook Dev-C Meetup| NLP & Architecture
_luay
October 27, 2017
More Decks by _luay
See All by _luay
The Triumph Of Side Projects - Vol 1👨💻| Intro
_luay
0
39
The Triumph Of Side Projects - Vol 1👨💻| Starting Manual
_luay
0
26
Intel-Meetup.pdf
_luay
0
44
ML-004 From Facebook| Movies Recommendation Case Study 🎬
_luay
0
37
Egyptian Geeks Meetup 🇪🇬| Different Types Of Bean Bags 💼🦄🦓
_luay
0
44
ML-003 From Facebook| Neural Nets In A Nutshell
_luay
0
26
ML-002 From Facebook| AI In A Nutshull 🤖
_luay
0
35
Zewil University Event| The AI Landscape 🤖
_luay
0
51
ML-001 From Facebook| Into The AI Context 🤖
_luay
0
27
Other Decks in Programming
See All in Programming
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
2
560
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
28
32k
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
1k
The Rails Doctrine Decade
koic
2
590
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
680
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
130
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
Simple Storage Service(S3) is not simple
iwatsukayura
0
290
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
5
3.6k
ジョジョの世界をXRで再現する
mofurune
0
160
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
140
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
433
67k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
Leo the Paperboy
mayatellez
10
2.4k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
Amusing Abliteration
ianozsvald
1
350
sira's awesome portfolio website redesign presentation
elsirapls
0
460
Writing Fast Ruby
sferik
630
63k
How GitHub (no longer) Works
holman
316
150k
Transcript
NLP & Architecture Session
Topics Covered • Text Processing & Cleaning. • Sentence Tagging.
• Classification VS Handmade Rules.
Text Processing & Cleaning
Word Tokenization From “my dog hasn't any fleas.” To [
‘my’, ‘dog’, ‘has’, ’n’\t’, ‘any’, ‘fleas’, ‘.’ ]
Word Token vs Word Type • Word Token: Total number
of words in a given sentence, regardless how often they are repeated. • Word Type: Total Number of Distinct words in a sentence.
Example The cushions are new and I can experience the
comfort well. Tokens: 11 Types: 10
Different Tokenizing Algorithms
Stemming Stemmers: Identifying the root word from a token. (e.g
fishing, fished, and fisher) their root is “fish”
Algorithms Porter. (Most commonly used, less aggressive, computational intensive) e.g
“animal -> anim”, “any -> ani“ Lancaster. (Very aggressive) e.g “animal -> anim”, “any -> any”
String Distance • Jaro-Winkler • Levenshtein
Jaro-Winkler Example
Levenshtein Example
Other Techniques • Inflectors. • Phonetics. • N-Grams. • Spellcheck.
• Part of speech tagging. • tf-idf
Sentence Taging
What’s Meant By • I want to read a book.
• I want to eat sandwich. • I want to play football.
What’s Meant By • I want to read that book.
• I read that book. • Did you read that book ? • Can you get me a book to read ? • I don’t want to read that book.
Identify Question Sentences • Do you have my pen? •
How old are you? • What is your name?
Sentences With Numeric Values • I am 23 years old.
• I am twenty three years old. • I am the twenty third.
Sentences With Names • Books by J.K Rowling. • My
name is John.
Identify Sentence Pronouns • Can you help me. • What
are you reading today. • Did you read thinking fast and slow. • Remind me tomorrow at 9 AM.
What’s Meant By • I want to read that book.
• I read that book. • Did you read that book ? • Can you get me a book to read ? • I don’t want to read that book.
Classification & Handmade Rules
Supervised ML • Document. • Fixed Set of classes. •
Training data
Classifier Example
Type of classifiers that are used for NLP • Naive
Bayes. • Logistic regression. • Support-vector machines. • k-Nearest Neighbors.
Handmade Rules
What’s Meant By • I want to read a book.
// Action => recommend Book • I want to eat sandwich. // Action => order sandwich • I want to play football. // Action => find suitable time
What is meant by • I want to read that
book. • I read that book. • Did you read that book ? • Can you get me a book to read ? • I don’t want to read that book.
Tools & Libraries
Examples • wit.ai • api.ai (Dialogflow) • Facbook NLP Engine
• Open source libraries for NLP Classifiers.
Topics Covered • Text Processing & Cleaning. • Sentence Tagging.
• Classification VS Handmade Rules.
Architecture
None
Useful Links • Stanford Natural Language Processing Course: https://goo.gl/FFbyBd •
Andrew NG, Machine Learning Course: https://goo.gl/AXkdyj • Recommended AI Books List: https://goo.gl/Sz9vyX