SlideShare ist ein Scribd-Unternehmen logo
1 von 35
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

ΠΡΟΙΟΝΤΑ ΚΗΠΟΥ ΕΜΠΟΤΙΣΜΕΝΗΣ ΞΥΛΕΙΑΣ ‘Επί Γης’®
ΠΡΟΙΟΝΤΑ ΚΗΠΟΥ ΕΜΠΟΤΙΣΜΕΝΗΣ ΞΥΛΕΙΑΣ ‘Επί Γης’®ΠΡΟΙΟΝΤΑ ΚΗΠΟΥ ΕΜΠΟΤΙΣΜΕΝΗΣ ΞΥΛΕΙΑΣ ‘Επί Γης’®
ΠΡΟΙΟΝΤΑ ΚΗΠΟΥ ΕΜΠΟΤΙΣΜΕΝΗΣ ΞΥΛΕΙΑΣ ‘Επί Γης’®Demetris Dimarelis
 
デバイスモデリングとは
デバイスモデリングとはデバイスモデリングとは
デバイスモデリングとはTsuyoshi Horigome
 
Systems and their properties
Systems and their propertiesSystems and their properties
Systems and their propertiesPrarthan P
 
Dsp model exam qp
Dsp model exam qpDsp model exam qp
Dsp model exam qpRama Dhurai
 
もっと知ってほしい肺がんのこと
もっと知ってほしい肺がんのこともっと知ってほしい肺がんのこと
もっと知ってほしい肺がんのことcancerchannel
 
An introduction to discrete wavelet transforms
An introduction to discrete wavelet transformsAn introduction to discrete wavelet transforms
An introduction to discrete wavelet transformsLily Rose
 
IIR filter design, Digital signal processing
IIR filter design, Digital signal processingIIR filter design, Digital signal processing
IIR filter design, Digital signal processingAbhishek Thakkar
 
MOSFET(LEVEL=3)のデバイスモデリングのワークフロー
MOSFET(LEVEL=3)のデバイスモデリングのワークフローMOSFET(LEVEL=3)のデバイスモデリングのワークフロー
MOSFET(LEVEL=3)のデバイスモデリングのワークフローTsuyoshi Horigome
 
Fundamentals of Digital Signal Processing - Question Bank
Fundamentals of Digital Signal Processing - Question BankFundamentals of Digital Signal Processing - Question Bank
Fundamentals of Digital Signal Processing - Question BankMathankumar S
 
Design of digital filters
Design of digital filtersDesign of digital filters
Design of digital filtersNaila Bibi
 
EEP306: Delta modulation
EEP306: Delta modulationEEP306: Delta modulation
EEP306: Delta modulationUmang Gupta
 
A review on reversible logic gates and their implementation
A review on reversible logic gates and their implementationA review on reversible logic gates and their implementation
A review on reversible logic gates and their implementationDebraj Maji
 
Dsp U Lec08 Fir Filter Design
Dsp U   Lec08 Fir Filter DesignDsp U   Lec08 Fir Filter Design
Dsp U Lec08 Fir Filter Designtaha25
 
THE FABRICATION OF REGULATED DC POWER SUPPLY
THE FABRICATION OF REGULATED DC POWER SUPPLYTHE FABRICATION OF REGULATED DC POWER SUPPLY
THE FABRICATION OF REGULATED DC POWER SUPPLYSAURAV DAYAL SING
 
FILTER DESIGN
FILTER DESIGNFILTER DESIGN
FILTER DESIGNnaimish12
 
Classification of signals
Classification of signalsClassification of signals
Classification of signalschitra raju
 
03 shift registers_and_more_data_manipulation_sp15
03 shift registers_and_more_data_manipulation_sp1503 shift registers_and_more_data_manipulation_sp15
03 shift registers_and_more_data_manipulation_sp15John Todora
 

Was ist angesagt? (20)

ΠΡΟΙΟΝΤΑ ΚΗΠΟΥ ΕΜΠΟΤΙΣΜΕΝΗΣ ΞΥΛΕΙΑΣ ‘Επί Γης’®
ΠΡΟΙΟΝΤΑ ΚΗΠΟΥ ΕΜΠΟΤΙΣΜΕΝΗΣ ΞΥΛΕΙΑΣ ‘Επί Γης’®ΠΡΟΙΟΝΤΑ ΚΗΠΟΥ ΕΜΠΟΤΙΣΜΕΝΗΣ ΞΥΛΕΙΑΣ ‘Επί Γης’®
ΠΡΟΙΟΝΤΑ ΚΗΠΟΥ ΕΜΠΟΤΙΣΜΕΝΗΣ ΞΥΛΕΙΑΣ ‘Επί Γης’®
 
デバイスモデリングとは
デバイスモデリングとはデバイスモデリングとは
デバイスモデリングとは
 
Multirate DSP
Multirate DSPMultirate DSP
Multirate DSP
 
Systems and their properties
Systems and their propertiesSystems and their properties
Systems and their properties
 
cutset retiming
cutset retimingcutset retiming
cutset retiming
 
Dsp model exam qp
Dsp model exam qpDsp model exam qp
Dsp model exam qp
 
もっと知ってほしい肺がんのこと
もっと知ってほしい肺がんのこともっと知ってほしい肺がんのこと
もっと知ってほしい肺がんのこと
 
An introduction to discrete wavelet transforms
An introduction to discrete wavelet transformsAn introduction to discrete wavelet transforms
An introduction to discrete wavelet transforms
 
IIR filter design, Digital signal processing
IIR filter design, Digital signal processingIIR filter design, Digital signal processing
IIR filter design, Digital signal processing
 
MOSFET(LEVEL=3)のデバイスモデリングのワークフロー
MOSFET(LEVEL=3)のデバイスモデリングのワークフローMOSFET(LEVEL=3)のデバイスモデリングのワークフロー
MOSFET(LEVEL=3)のデバイスモデリングのワークフロー
 
Fundamentals of Digital Signal Processing - Question Bank
Fundamentals of Digital Signal Processing - Question BankFundamentals of Digital Signal Processing - Question Bank
Fundamentals of Digital Signal Processing - Question Bank
 
Design of digital filters
Design of digital filtersDesign of digital filters
Design of digital filters
 
IIR filter
IIR filterIIR filter
IIR filter
 
EEP306: Delta modulation
EEP306: Delta modulationEEP306: Delta modulation
EEP306: Delta modulation
 
A review on reversible logic gates and their implementation
A review on reversible logic gates and their implementationA review on reversible logic gates and their implementation
A review on reversible logic gates and their implementation
 
Dsp U Lec08 Fir Filter Design
Dsp U   Lec08 Fir Filter DesignDsp U   Lec08 Fir Filter Design
Dsp U Lec08 Fir Filter Design
 
THE FABRICATION OF REGULATED DC POWER SUPPLY
THE FABRICATION OF REGULATED DC POWER SUPPLYTHE FABRICATION OF REGULATED DC POWER SUPPLY
THE FABRICATION OF REGULATED DC POWER SUPPLY
 
FILTER DESIGN
FILTER DESIGNFILTER DESIGN
FILTER DESIGN
 
Classification of signals
Classification of signalsClassification of signals
Classification of signals
 
03 shift registers_and_more_data_manipulation_sp15
03 shift registers_and_more_data_manipulation_sp1503 shift registers_and_more_data_manipulation_sp15
03 shift registers_and_more_data_manipulation_sp15
 

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

Paraphrase Detection in NLP
Paraphrase Detection in NLPParaphrase Detection in NLP
Paraphrase Detection in NLPYuriy 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
 
Persuasive Essay On Organic Food
Persuasive Essay On Organic FoodPersuasive Essay On Organic Food
Persuasive Essay On Organic FoodTameka Howard
 
How to Thrive in Disruptive Times
How to Thrive in Disruptive TimesHow to Thrive in Disruptive Times
How to Thrive in Disruptive TimesGary 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 TypesAndrea Lawson
 
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 ExaAvis 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 MovementKirby 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.ComSabrina 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 EssaysRebecca 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 WritinGinger 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 DEmily 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 DiversiTonya Strongheart
 

Ähnlich wie Grammarly Meetup: Paraphrase Detection in NLP (PART 1) - Yuriy Guts (20)

Paraphrase Detection in NLP
Paraphrase Detection in NLPParaphrase Detection in NLP
Paraphrase Detection in NLP
 
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
 

Mehr von 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 100xGrammarly
 
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 GryshchukGrammarly
 
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 HamonGrammarly
 

Mehr von 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
 

Kürzlich hochgeladen

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
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
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
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
 
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
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 

Kürzlich hochgeladen (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
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
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
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...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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
 
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...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

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.