SlideShare a Scribd company logo
Paraphrase Detection in NLP
Yuriy Guts
ML Engineer
=
?
Part 1
Paraphrasing
Any trip to Italy should include a visit to Tuscany to sample their exquisite wines.
Be sure to include a Tuscan wine-tasting experience when visiting Italy.
Paraphrase Identification
Where can I get very professional and reliable
envelope printing service in Sydney?
Where can I get very affordable branded
envelope printing service in Sydney?
Why are doctors always late?
Why doctors always make you wait for 15-20 minutes
before they see you?
404,290 pairs
Training set
2,345,796 pairs
Test set
Data
Q1 (ID, Title) Q2 (ID, Title)
Target
Binary (metric: log-loss)
Challenges
What are the best books on IT leadership?
What are the best books about leadership?
Sometimes a single word matters
Will the Miami Heat win the NBA championship in 2011?
Will the Miami Heat win the NBA championship in 2012?
How do I lose 20 pounds?
How do I lose 15 pounds?
Sometimes there are almost no shared words
I am unable to talk to girls, leave being friendly with them. Why?
I am shy to talk to any woman because i get nervous and
freaked out around them. What is the solution?
Is there a Quora user who have seen a UFO?
Have you seen an alien?
Sometimes ALL the words are shared
Is the Government of Pakistan encouraging India by not
taking any real action against ceasefire violations?
Is the Government of India encouraging Pakistan by not
taking any real action against ceasefire violations?
What is the most interesting thing we learned about
Portugal's World Cup team in their match against Germany?
What is the most interesting thing we learned about
Germany's World Cup team in their match against Portugal?
How can I prevent pneumonia?
How do you prevent pneumonia?
Sometimes the labeling is just plain wrong
What is the car in this picture?
What car is in this picture?
How do I protect single phasing of a 3 phase motor?
What is single phase and 3 phase?
People misspell. A lot.
demonitization demonitozation masturbution masturbtion
demonitizing demonetiztion masturation mastburation
demonetising demoneitisation mastrubating masturabate
demonitisation demoneticzation masturbuation mastrubration
demonitize demonitizition masterbuting mastubrate
demonatisation demonetisations mastubate masturbute
demonitazation demonitasation mastribution mastribute
demonitesation demonestisation masturburation masterbuate
demoneytisation demotenization mastrabutation mastubating
demonestation demonitised mastubation
demonitising demonsation
100,000+
spelling corrections
Different target balance for Train and Test
Approaches
1. Counting Stuff.
2. Information Theory.
3. Linguistics.
4. Deep Learning.
BoW Representations
Image copyright © S. Mukherjee
Cosine Similarity
Image copyright © C. Perone
Jaccard Similarity
Image copyright © C. Wagner
Edit Distances
1. Levenshtein
2. Damerau-Levenshtein
3. Jaro
4. Jaro-Winkler
… … ...
Lexical Databases and Ontologies
house, home
dwelling
hermitage cottage
backyard
veranda
study
“A place that serves as the living
quarters of one or more families”
. . .
penthouse
Meronym
Hyponym
HyponymHypernym
Hyponym
Def
WordNet
“The complete meaning of a word is always contextual, and no study of
meaning apart from context can be taken seriously”
Distributed Hypothesis of Language
John R. Firth. The technique of semantics.
Transactions of the Philological Society, 1935.
The minimum amount of “work” needed to transform document 1 to document 2.
Inspired by Earth Mover’s Distance, a well-studied transportation problem.
Word Mover’s Distance (WMD)
M. Kusner et al. “From Word Embeddings to Document Distances”, 2015.
http://proceedings.mlr.press/v37/kusnerb15.pdf
WMD: Linear Optimization Problem
M. Kusner et al. “From Word Embeddings to Document Distances”, 2015.
http://proceedings.mlr.press/v37/kusnerb15.pdf
nBOW frequency of the
i-th word in the document
“How much” of word i
travels to word j
Morphology & Syntax Features
https://demos.explosion.ai/displacy/
Architectural Principles
for State-of-the-Art Neural NLP
Embed
Encode
Attend
Predict
State-of-the-Art NLP Pipeline
Image copyright © Explosion AI
Embed
Image copyright © The Morning Paper
Encode: Convolutions over Word Embeddings
Image copyright © WildML
Y. Kim. “Convolutional Neural Networks for Sentence Classification” [2014]
Encode: RNNs over Word Embeddings
Image copyright © Edwin Chen
Encode: Gated Recurrent Architectures
Image copyright © Chris Olah
Attend
Content credit: Stanford CS224n
Two Input Documents? Siamese Network
Run the same encoding step for every input.
Share encoder weights, don’t learn WE1
and WE2
separately.
Distance Learning, Contrastive Loss
Penalize similar pairs by a monotonically increasing function of their learned distance.
Penalize different pairs by a monotonically decreasing function of their learned distance.
Hadsell, Chopra, LeCun “Dimensionality Reduction by Learning an Invariant Mapping”, 2006.
http://yann.lecun.com/exdb/publis/pdf/hadsell-chopra-lecun-06.pdf
facebook.com/yuriy.guts
github.com/YuriyGuts/kaggle-quora-question-pairs

More Related Content

What's hot

What is a chatbot?
What is a chatbot?What is a chatbot?
What is a chatbot?
Kamini Bharti
 
Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...
Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...
Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...
David Talby
 
Introduction to Transformers for NLP - Olga Petrova
Introduction to Transformers for NLP - Olga PetrovaIntroduction to Transformers for NLP - Olga Petrova
Introduction to Transformers for NLP - Olga Petrova
Alexey Grigorev
 
Chatbot
ChatbotChatbot
Chatbot
haseeb muhsin
 
Chatbots - The Business Opportunity
Chatbots - The Business OpportunityChatbots - The Business Opportunity
Chatbots - The Business Opportunity
Alexandros Ivos
 
Deep fake
Deep fakeDeep fake
Deep fake
elisetty pavan
 
Natural language processing: feature extraction
Natural language processing: feature extractionNatural language processing: feature extraction
Natural language processing: feature extraction
Gabriel Hamilton
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
Yogendra Tamang
 
Word embeddings
Word embeddingsWord embeddings
Word embeddings
Shruti kar
 
LLMs Bootcamp
LLMs BootcampLLMs Bootcamp
LLMs Bootcamp
Fiza987241
 
Introduction to natural language processing (NLP)
Introduction to natural language processing (NLP)Introduction to natural language processing (NLP)
Introduction to natural language processing (NLP)
Alia Hamwi
 
Large Language Models Bootcamp
Large Language Models BootcampLarge Language Models Bootcamp
Large Language Models Bootcamp
Data Science Dojo
 
Nasscom Futureskills Prime: Transforming India's Talent Story
Nasscom Futureskills Prime: Transforming India's Talent StoryNasscom Futureskills Prime: Transforming India's Talent Story
Nasscom Futureskills Prime: Transforming India's Talent Story
OnlineLearning8
 
Natural language processing (NLP) introduction
Natural language processing (NLP) introductionNatural language processing (NLP) introduction
Natural language processing (NLP) introduction
Robert Lujo
 
Neural Text Embeddings for Information Retrieval (WSDM 2017)
Neural Text Embeddings for Information Retrieval (WSDM 2017)Neural Text Embeddings for Information Retrieval (WSDM 2017)
Neural Text Embeddings for Information Retrieval (WSDM 2017)
Bhaskar Mitra
 
Deepfakes - How they work and what it means for the future
Deepfakes - How they work and what it means for the futureDeepfakes - How they work and what it means for the future
Deepfakes - How they work and what it means for the future
Jarrod Overson
 
GenerativeAI and Automation - IEEE ACSOS 2023.pptx
GenerativeAI and Automation - IEEE ACSOS 2023.pptxGenerativeAI and Automation - IEEE ACSOS 2023.pptx
GenerativeAI and Automation - IEEE ACSOS 2023.pptx
Allen Chan
 
Word embedding
Word embedding Word embedding
Word embedding
ShivaniChoudhary74
 
Virtual Reality
Virtual RealityVirtual Reality
Virtual Reality
PreetiPandya4
 
[DSC Europe 23] Marcel Tkacik - Augmented Retrieval Products with GAI models
[DSC Europe 23] Marcel Tkacik - Augmented Retrieval Products with GAI models[DSC Europe 23] Marcel Tkacik - Augmented Retrieval Products with GAI models
[DSC Europe 23] Marcel Tkacik - Augmented Retrieval Products with GAI models
DataScienceConferenc1
 

What's hot (20)

What is a chatbot?
What is a chatbot?What is a chatbot?
What is a chatbot?
 
Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...
Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...
Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...
 
Introduction to Transformers for NLP - Olga Petrova
Introduction to Transformers for NLP - Olga PetrovaIntroduction to Transformers for NLP - Olga Petrova
Introduction to Transformers for NLP - Olga Petrova
 
Chatbot
ChatbotChatbot
Chatbot
 
Chatbots - The Business Opportunity
Chatbots - The Business OpportunityChatbots - The Business Opportunity
Chatbots - The Business Opportunity
 
Deep fake
Deep fakeDeep fake
Deep fake
 
Natural language processing: feature extraction
Natural language processing: feature extractionNatural language processing: feature extraction
Natural language processing: feature extraction
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 
Word embeddings
Word embeddingsWord embeddings
Word embeddings
 
LLMs Bootcamp
LLMs BootcampLLMs Bootcamp
LLMs Bootcamp
 
Introduction to natural language processing (NLP)
Introduction to natural language processing (NLP)Introduction to natural language processing (NLP)
Introduction to natural language processing (NLP)
 
Large Language Models Bootcamp
Large Language Models BootcampLarge Language Models Bootcamp
Large Language Models Bootcamp
 
Nasscom Futureskills Prime: Transforming India's Talent Story
Nasscom Futureskills Prime: Transforming India's Talent StoryNasscom Futureskills Prime: Transforming India's Talent Story
Nasscom Futureskills Prime: Transforming India's Talent Story
 
Natural language processing (NLP) introduction
Natural language processing (NLP) introductionNatural language processing (NLP) introduction
Natural language processing (NLP) introduction
 
Neural Text Embeddings for Information Retrieval (WSDM 2017)
Neural Text Embeddings for Information Retrieval (WSDM 2017)Neural Text Embeddings for Information Retrieval (WSDM 2017)
Neural Text Embeddings for Information Retrieval (WSDM 2017)
 
Deepfakes - How they work and what it means for the future
Deepfakes - How they work and what it means for the futureDeepfakes - How they work and what it means for the future
Deepfakes - How they work and what it means for the future
 
GenerativeAI and Automation - IEEE ACSOS 2023.pptx
GenerativeAI and Automation - IEEE ACSOS 2023.pptxGenerativeAI and Automation - IEEE ACSOS 2023.pptx
GenerativeAI and Automation - IEEE ACSOS 2023.pptx
 
Word embedding
Word embedding Word embedding
Word embedding
 
Virtual Reality
Virtual RealityVirtual Reality
Virtual Reality
 
[DSC Europe 23] Marcel Tkacik - Augmented Retrieval Products with GAI models
[DSC Europe 23] Marcel Tkacik - Augmented Retrieval Products with GAI models[DSC Europe 23] Marcel Tkacik - Augmented Retrieval Products with GAI models
[DSC Europe 23] Marcel Tkacik - Augmented Retrieval Products with GAI models
 

Similar to Grammarly Meetup: Paraphrase Detection in NLP (PART 1) - Yuriy Guts

Write Esse Descriptive Essay E. Online assignment writing service.
Write Esse Descriptive Essay E. Online assignment writing service.Write Esse Descriptive Essay E. Online assignment writing service.
Write Esse Descriptive Essay E. Online assignment writing service.
Nicolle Dammann
 
Essays On Gandhi
Essays On GandhiEssays On Gandhi
Essays On Gandhi
Melissa Mack
 
Persuasive Essay On Organic Food
Persuasive Essay On Organic FoodPersuasive Essay On Organic Food
Persuasive Essay On Organic Food
Tameka Howard
 
How to Thrive in Disruptive Times
How to Thrive in Disruptive TimesHow to Thrive in Disruptive Times
How to Thrive in Disruptive Times
Gary A. Bolles
 
Essay Dream Wedding. Online assignment writing service.
Essay Dream Wedding. Online assignment writing service.Essay Dream Wedding. Online assignment writing service.
Essay Dream Wedding. Online assignment writing service.
Brittany Smith
 
On The Road Jack Kerouac Essay Ideas. Online assignment writing service.
On The Road Jack Kerouac Essay Ideas. Online assignment writing service.On The Road Jack Kerouac Essay Ideas. Online assignment writing service.
On The Road Jack Kerouac Essay Ideas. Online assignment writing service.
Jennifer Magee
 
What Is Essay Writing And Its Types
What Is Essay Writing And Its TypesWhat Is Essay Writing And Its Types
What Is Essay Writing And Its Types
Andrea Lawson
 
Brown Essays.pdf
Brown Essays.pdfBrown Essays.pdf
Brown Essays.pdf
Christina Morgan
 
Writing A College Admission Essay College Essay Exa
Writing A College Admission Essay College Essay ExaWriting A College Admission Essay College Essay Exa
Writing A College Admission Essay College Essay Exa
Avis Malave
 
Ap Lang Queen Elizabeth Essay. Online assignment writing service.
Ap Lang Queen Elizabeth Essay. Online assignment writing service.Ap Lang Queen Elizabeth Essay. Online assignment writing service.
Ap Lang Queen Elizabeth Essay. Online assignment writing service.
Mary Drinkwine
 
PowerPoint of the Movement
PowerPoint of the MovementPowerPoint of the Movement
PowerPoint of the Movement
Kirby Crider
 
Fiction Global Warming - GCSE English - Marked By Teachers.Com
Fiction Global Warming - GCSE English - Marked By Teachers.ComFiction Global Warming - GCSE English - Marked By Teachers.Com
Fiction Global Warming - GCSE English - Marked By Teachers.Com
Sabrina Hendricks
 
Wind Turbine Essay Conclusion. Online assignment writing service.
Wind Turbine Essay Conclusion. Online assignment writing service.Wind Turbine Essay Conclusion. Online assignment writing service.
Wind Turbine Essay Conclusion. Online assignment writing service.
Emma Velasquez
 
Tips On How To Write A Better Narrative Essay Essays
Tips On How To Write A Better Narrative Essay  EssaysTips On How To Write A Better Narrative Essay  Essays
Tips On How To Write A Better Narrative Essay Essays
Rebecca Buono
 
Informative Essay Notes. Online assignment writing service.
Informative Essay Notes. Online assignment writing service.Informative Essay Notes. Online assignment writing service.
Informative Essay Notes. Online assignment writing service.
Tina Gabel
 
Writing Paper With Borders Printable - Printable Writin
Writing Paper With Borders Printable - Printable WritinWriting Paper With Borders Printable - Printable Writin
Writing Paper With Borders Printable - Printable Writin
Ginger Schiffli
 
A George Washington ... Writing Paper By Regina D
A George Washington ... Writing Paper By Regina DA George Washington ... Writing Paper By Regina D
A George Washington ... Writing Paper By Regina D
Emily Smith
 
What Is Diversity Essay. What Is Diversity In Diversi
What Is Diversity Essay. What Is Diversity In DiversiWhat Is Diversity Essay. What Is Diversity In Diversi
What Is Diversity Essay. What Is Diversity In Diversi
Tonya Strongheart
 
Pink Writing Paper. Top Essay Pink Writing Paper L
Pink Writing Paper. Top Essay Pink Writing Paper LPink Writing Paper. Top Essay Pink Writing Paper L
Pink Writing Paper. Top Essay Pink Writing Paper L
Kaela Johnson
 

Similar to Grammarly Meetup: Paraphrase Detection in NLP (PART 1) - Yuriy Guts (20)

Write Esse Descriptive Essay E. Online assignment writing service.
Write Esse Descriptive Essay E. Online assignment writing service.Write Esse Descriptive Essay E. Online assignment writing service.
Write Esse Descriptive Essay E. Online assignment writing service.
 
Essays On Gandhi
Essays On GandhiEssays On Gandhi
Essays On Gandhi
 
Persuasive Essay On Organic Food
Persuasive Essay On Organic FoodPersuasive Essay On Organic Food
Persuasive Essay On Organic Food
 
How to Thrive in Disruptive Times
How to Thrive in Disruptive TimesHow to Thrive in Disruptive Times
How to Thrive in Disruptive Times
 
Essay Dream Wedding. Online assignment writing service.
Essay Dream Wedding. Online assignment writing service.Essay Dream Wedding. Online assignment writing service.
Essay Dream Wedding. Online assignment writing service.
 
On The Road Jack Kerouac Essay Ideas. Online assignment writing service.
On The Road Jack Kerouac Essay Ideas. Online assignment writing service.On The Road Jack Kerouac Essay Ideas. Online assignment writing service.
On The Road Jack Kerouac Essay Ideas. Online assignment writing service.
 
What Is Essay Writing And Its Types
What Is Essay Writing And Its TypesWhat Is Essay Writing And Its Types
What Is Essay Writing And Its Types
 
Brown Essays.pdf
Brown Essays.pdfBrown Essays.pdf
Brown Essays.pdf
 
Writing A College Admission Essay College Essay Exa
Writing A College Admission Essay College Essay ExaWriting A College Admission Essay College Essay Exa
Writing A College Admission Essay College Essay Exa
 
Ap Lang Queen Elizabeth Essay. Online assignment writing service.
Ap Lang Queen Elizabeth Essay. Online assignment writing service.Ap Lang Queen Elizabeth Essay. Online assignment writing service.
Ap Lang Queen Elizabeth Essay. Online assignment writing service.
 
PowerPoint of the Movement
PowerPoint of the MovementPowerPoint of the Movement
PowerPoint of the Movement
 
Fiction Global Warming - GCSE English - Marked By Teachers.Com
Fiction Global Warming - GCSE English - Marked By Teachers.ComFiction Global Warming - GCSE English - Marked By Teachers.Com
Fiction Global Warming - GCSE English - Marked By Teachers.Com
 
Wind Turbine Essay Conclusion. Online assignment writing service.
Wind Turbine Essay Conclusion. Online assignment writing service.Wind Turbine Essay Conclusion. Online assignment writing service.
Wind Turbine Essay Conclusion. Online assignment writing service.
 
edu
eduedu
edu
 
Tips On How To Write A Better Narrative Essay Essays
Tips On How To Write A Better Narrative Essay  EssaysTips On How To Write A Better Narrative Essay  Essays
Tips On How To Write A Better Narrative Essay Essays
 
Informative Essay Notes. Online assignment writing service.
Informative Essay Notes. Online assignment writing service.Informative Essay Notes. Online assignment writing service.
Informative Essay Notes. Online assignment writing service.
 
Writing Paper With Borders Printable - Printable Writin
Writing Paper With Borders Printable - Printable WritinWriting Paper With Borders Printable - Printable Writin
Writing Paper With Borders Printable - Printable Writin
 
A George Washington ... Writing Paper By Regina D
A George Washington ... Writing Paper By Regina DA George Washington ... Writing Paper By Regina D
A George Washington ... Writing Paper By Regina D
 
What Is Diversity Essay. What Is Diversity In Diversi
What Is Diversity Essay. What Is Diversity In DiversiWhat Is Diversity Essay. What Is Diversity In Diversi
What Is Diversity Essay. What Is Diversity In Diversi
 
Pink Writing Paper. Top Essay Pink Writing Paper L
Pink Writing Paper. Top Essay Pink Writing Paper LPink Writing Paper. Top Essay Pink Writing Paper L
Pink Writing Paper. Top Essay Pink Writing Paper L
 

More from Grammarly

Vitalii Braslavskyi - Declarative engineering
Vitalii Braslavskyi - Declarative engineering Vitalii Braslavskyi - Declarative engineering
Vitalii Braslavskyi - Declarative engineering
Grammarly
 
Grammarly AI-NLP Club #10 - Information-Theoretic Probing with Minimum Descri...
Grammarly AI-NLP Club #10 - Information-Theoretic Probing with Minimum Descri...Grammarly AI-NLP Club #10 - Information-Theoretic Probing with Minimum Descri...
Grammarly AI-NLP Club #10 - Information-Theoretic Probing with Minimum Descri...
Grammarly
 
Grammarly AI-NLP Club #9 - Dumpster diving for parallel corpora with efficien...
Grammarly AI-NLP Club #9 - Dumpster diving for parallel corpora with efficien...Grammarly AI-NLP Club #9 - Dumpster diving for parallel corpora with efficien...
Grammarly AI-NLP Club #9 - Dumpster diving for parallel corpora with efficien...
Grammarly
 
Grammarly AI-NLP Club #8 - Arabic Natural Language Processing: Challenges and...
Grammarly AI-NLP Club #8 - Arabic Natural Language Processing: Challenges and...Grammarly AI-NLP Club #8 - Arabic Natural Language Processing: Challenges and...
Grammarly AI-NLP Club #8 - Arabic Natural Language Processing: Challenges and...
Grammarly
 
Grammarly AI-NLP Club #6 - Sequence Tagging using Neural Networks - Artem Che...
Grammarly AI-NLP Club #6 - Sequence Tagging using Neural Networks - Artem Che...Grammarly AI-NLP Club #6 - Sequence Tagging using Neural Networks - Artem Che...
Grammarly AI-NLP Club #6 - Sequence Tagging using Neural Networks - Artem Che...
Grammarly
 
Grammarly AI-NLP Club #5 - Automatic text simplification in the biomedical do...
Grammarly AI-NLP Club #5 - Automatic text simplification in the biomedical do...Grammarly AI-NLP Club #5 - Automatic text simplification in the biomedical do...
Grammarly AI-NLP Club #5 - Automatic text simplification in the biomedical do...
Grammarly
 
Grammarly AI-NLP Club #3 - Learning to Read for Automated Fact Checking - Isa...
Grammarly AI-NLP Club #3 - Learning to Read for Automated Fact Checking - Isa...Grammarly AI-NLP Club #3 - Learning to Read for Automated Fact Checking - Isa...
Grammarly AI-NLP Club #3 - Learning to Read for Automated Fact Checking - Isa...
Grammarly
 
Grammarly AI-NLP Club #4 - Understanding and assessing language with neural n...
Grammarly AI-NLP Club #4 - Understanding and assessing language with neural n...Grammarly AI-NLP Club #4 - Understanding and assessing language with neural n...
Grammarly AI-NLP Club #4 - Understanding and assessing language with neural n...
Grammarly
 
Grammarly Meetup: DevOps at Grammarly: Scaling 100x
Grammarly Meetup: DevOps at Grammarly: Scaling 100xGrammarly Meetup: DevOps at Grammarly: Scaling 100x
Grammarly Meetup: DevOps at Grammarly: Scaling 100x
Grammarly
 
Grammarly Meetup: Memory Networks for Question Answering on Tabular Data - Sv...
Grammarly Meetup: Memory Networks for Question Answering on Tabular Data - Sv...Grammarly Meetup: Memory Networks for Question Answering on Tabular Data - Sv...
Grammarly Meetup: Memory Networks for Question Answering on Tabular Data - Sv...
Grammarly
 
Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...
Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...
Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...
Grammarly
 
Grammarly AI-NLP Club #1 - Domain and Social Bias in NLP: Case Study in Langu...
Grammarly AI-NLP Club #1 - Domain and Social Bias in NLP: Case Study in Langu...Grammarly AI-NLP Club #1 - Domain and Social Bias in NLP: Case Study in Langu...
Grammarly AI-NLP Club #1 - Domain and Social Bias in NLP: Case Study in Langu...
Grammarly
 
Grammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy Gryshchuk
Grammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy GryshchukGrammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy Gryshchuk
Grammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy Gryshchuk
Grammarly
 
Natural Language Processing for biomedical text mining - Thierry Hamon
Natural Language Processing for biomedical text mining - Thierry HamonNatural Language Processing for biomedical text mining - Thierry Hamon
Natural Language Processing for biomedical text mining - Thierry Hamon
Grammarly
 

More from Grammarly (14)

Vitalii Braslavskyi - Declarative engineering
Vitalii Braslavskyi - Declarative engineering Vitalii Braslavskyi - Declarative engineering
Vitalii Braslavskyi - Declarative engineering
 
Grammarly AI-NLP Club #10 - Information-Theoretic Probing with Minimum Descri...
Grammarly AI-NLP Club #10 - Information-Theoretic Probing with Minimum Descri...Grammarly AI-NLP Club #10 - Information-Theoretic Probing with Minimum Descri...
Grammarly AI-NLP Club #10 - Information-Theoretic Probing with Minimum Descri...
 
Grammarly AI-NLP Club #9 - Dumpster diving for parallel corpora with efficien...
Grammarly AI-NLP Club #9 - Dumpster diving for parallel corpora with efficien...Grammarly AI-NLP Club #9 - Dumpster diving for parallel corpora with efficien...
Grammarly AI-NLP Club #9 - Dumpster diving for parallel corpora with efficien...
 
Grammarly AI-NLP Club #8 - Arabic Natural Language Processing: Challenges and...
Grammarly AI-NLP Club #8 - Arabic Natural Language Processing: Challenges and...Grammarly AI-NLP Club #8 - Arabic Natural Language Processing: Challenges and...
Grammarly AI-NLP Club #8 - Arabic Natural Language Processing: Challenges and...
 
Grammarly AI-NLP Club #6 - Sequence Tagging using Neural Networks - Artem Che...
Grammarly AI-NLP Club #6 - Sequence Tagging using Neural Networks - Artem Che...Grammarly AI-NLP Club #6 - Sequence Tagging using Neural Networks - Artem Che...
Grammarly AI-NLP Club #6 - Sequence Tagging using Neural Networks - Artem Che...
 
Grammarly AI-NLP Club #5 - Automatic text simplification in the biomedical do...
Grammarly AI-NLP Club #5 - Automatic text simplification in the biomedical do...Grammarly AI-NLP Club #5 - Automatic text simplification in the biomedical do...
Grammarly AI-NLP Club #5 - Automatic text simplification in the biomedical do...
 
Grammarly AI-NLP Club #3 - Learning to Read for Automated Fact Checking - Isa...
Grammarly AI-NLP Club #3 - Learning to Read for Automated Fact Checking - Isa...Grammarly AI-NLP Club #3 - Learning to Read for Automated Fact Checking - Isa...
Grammarly AI-NLP Club #3 - Learning to Read for Automated Fact Checking - Isa...
 
Grammarly AI-NLP Club #4 - Understanding and assessing language with neural n...
Grammarly AI-NLP Club #4 - Understanding and assessing language with neural n...Grammarly AI-NLP Club #4 - Understanding and assessing language with neural n...
Grammarly AI-NLP Club #4 - Understanding and assessing language with neural n...
 
Grammarly Meetup: DevOps at Grammarly: Scaling 100x
Grammarly Meetup: DevOps at Grammarly: Scaling 100xGrammarly Meetup: DevOps at Grammarly: Scaling 100x
Grammarly Meetup: DevOps at Grammarly: Scaling 100x
 
Grammarly Meetup: Memory Networks for Question Answering on Tabular Data - Sv...
Grammarly Meetup: Memory Networks for Question Answering on Tabular Data - Sv...Grammarly Meetup: Memory Networks for Question Answering on Tabular Data - Sv...
Grammarly Meetup: Memory Networks for Question Answering on Tabular Data - Sv...
 
Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...
Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...
Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...
 
Grammarly AI-NLP Club #1 - Domain and Social Bias in NLP: Case Study in Langu...
Grammarly AI-NLP Club #1 - Domain and Social Bias in NLP: Case Study in Langu...Grammarly AI-NLP Club #1 - Domain and Social Bias in NLP: Case Study in Langu...
Grammarly AI-NLP Club #1 - Domain and Social Bias in NLP: Case Study in Langu...
 
Grammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy Gryshchuk
Grammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy GryshchukGrammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy Gryshchuk
Grammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy Gryshchuk
 
Natural Language Processing for biomedical text mining - Thierry Hamon
Natural Language Processing for biomedical text mining - Thierry HamonNatural Language Processing for biomedical text mining - Thierry Hamon
Natural Language Processing for biomedical text mining - Thierry Hamon
 

Recently uploaded

DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 

Recently uploaded (20)

DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 

Grammarly Meetup: Paraphrase Detection in NLP (PART 1) - Yuriy Guts

  • 1. Paraphrase Detection in NLP Yuriy Guts ML Engineer = ? Part 1
  • 2. Paraphrasing Any trip to Italy should include a visit to Tuscany to sample their exquisite wines. Be sure to include a Tuscan wine-tasting experience when visiting Italy.
  • 3. Paraphrase Identification Where can I get very professional and reliable envelope printing service in Sydney? Where can I get very affordable branded envelope printing service in Sydney? Why are doctors always late? Why doctors always make you wait for 15-20 minutes before they see you?
  • 4. 404,290 pairs Training set 2,345,796 pairs Test set Data Q1 (ID, Title) Q2 (ID, Title) Target Binary (metric: log-loss)
  • 6. What are the best books on IT leadership? What are the best books about leadership? Sometimes a single word matters Will the Miami Heat win the NBA championship in 2011? Will the Miami Heat win the NBA championship in 2012? How do I lose 20 pounds? How do I lose 15 pounds?
  • 7. Sometimes there are almost no shared words I am unable to talk to girls, leave being friendly with them. Why? I am shy to talk to any woman because i get nervous and freaked out around them. What is the solution? Is there a Quora user who have seen a UFO? Have you seen an alien?
  • 8. Sometimes ALL the words are shared Is the Government of Pakistan encouraging India by not taking any real action against ceasefire violations? Is the Government of India encouraging Pakistan by not taking any real action against ceasefire violations? What is the most interesting thing we learned about Portugal's World Cup team in their match against Germany? What is the most interesting thing we learned about Germany's World Cup team in their match against Portugal?
  • 9. How can I prevent pneumonia? How do you prevent pneumonia? Sometimes the labeling is just plain wrong What is the car in this picture? What car is in this picture? How do I protect single phasing of a 3 phase motor? What is single phase and 3 phase?
  • 10. People misspell. A lot. demonitization demonitozation masturbution masturbtion demonitizing demonetiztion masturation mastburation demonetising demoneitisation mastrubating masturabate demonitisation demoneticzation masturbuation mastrubration demonitize demonitizition masterbuting mastubrate demonatisation demonetisations mastubate masturbute demonitazation demonitasation mastribution mastribute demonitesation demonestisation masturburation masterbuate demoneytisation demotenization mastrabutation mastubating demonestation demonitised mastubation demonitising demonsation 100,000+ spelling corrections
  • 11. Different target balance for Train and Test
  • 12. Approaches 1. Counting Stuff. 2. Information Theory. 3. Linguistics. 4. Deep Learning.
  • 16. Edit Distances 1. Levenshtein 2. Damerau-Levenshtein 3. Jaro 4. Jaro-Winkler … … ...
  • 17. Lexical Databases and Ontologies house, home dwelling hermitage cottage backyard veranda study “A place that serves as the living quarters of one or more families” . . . penthouse Meronym Hyponym HyponymHypernym Hyponym Def
  • 19. “The complete meaning of a word is always contextual, and no study of meaning apart from context can be taken seriously” Distributed Hypothesis of Language John R. Firth. The technique of semantics. Transactions of the Philological Society, 1935.
  • 20. The minimum amount of “work” needed to transform document 1 to document 2. Inspired by Earth Mover’s Distance, a well-studied transportation problem. Word Mover’s Distance (WMD) M. Kusner et al. “From Word Embeddings to Document Distances”, 2015. http://proceedings.mlr.press/v37/kusnerb15.pdf
  • 21. WMD: Linear Optimization Problem M. Kusner et al. “From Word Embeddings to Document Distances”, 2015. http://proceedings.mlr.press/v37/kusnerb15.pdf nBOW frequency of the i-th word in the document “How much” of word i travels to word j
  • 22. Morphology & Syntax Features https://demos.explosion.ai/displacy/
  • 25. State-of-the-Art NLP Pipeline Image copyright © Explosion AI
  • 26. Embed Image copyright © The Morning Paper
  • 27. Encode: Convolutions over Word Embeddings Image copyright © WildML Y. Kim. “Convolutional Neural Networks for Sentence Classification” [2014]
  • 28. Encode: RNNs over Word Embeddings Image copyright © Edwin Chen
  • 29. Encode: Gated Recurrent Architectures Image copyright © Chris Olah
  • 31. Two Input Documents? Siamese Network Run the same encoding step for every input. Share encoder weights, don’t learn WE1 and WE2 separately.
  • 32. Distance Learning, Contrastive Loss Penalize similar pairs by a monotonically increasing function of their learned distance. Penalize different pairs by a monotonically decreasing function of their learned distance. Hadsell, Chopra, LeCun “Dimensionality Reduction by Learning an Invariant Mapping”, 2006. http://yann.lecun.com/exdb/publis/pdf/hadsell-chopra-lecun-06.pdf
  • 33.
  • 34.