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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
_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
Transcript
34 slides
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
More Decks by _luay
See All by _luay
The Triumph Of Side Projects - Vol 1👨💻| Intro
_luay
0
40
The Triumph Of Side Projects - Vol 1👨💻| Starting Manual
_luay
0
27
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
46
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
なぜ私たちは「現時点では」KMPの導入を見送ったのか
chigichan24
0
240
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
150
Python Lambdaにおけるテストしやすい設計とAI支援の活用 / Designing Testable Python Lambda Functions with AI
kitano_yuichi
1
330
SODA - FACT BOOK(EN)
sodainc
1
240
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
160
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
310
Claude Code ハーネスDeep Dive – 君はどこまで制御する? -
takateeen_knj
6
5.8k
自宅サーバはどこまで再現できるのか - Proxmox VE上のVM環境をIaCとバックアップで戻してみた
youto
0
270
From Java 8-11 to Java 21-27 — Benefits, Challenges, and a Practical Migration Path
x5gtrn
PRO
0
100
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
12k
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
750
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
260
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
Building Applications with DynamoDB
mza
96
7.3k
Darren the Foodie - Storyboard
khoart
PRO
5
4.1k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.8k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
680
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
570
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
60k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
Into the Great Unknown - MozCon
thekraken
41
2.8k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.8k