SlideShare uma empresa Scribd logo
1 de 21
1
Dutch Humor Detection
by Generating Negative Examples
Thomas Winters & Pieter Delobelle
PhD Students at DTAI, KU Leuven
firstname.lastname@kuleuven.be
@thomas_wint
thomaswinters.be
@pieterdelobelle
people.cs.kuleuven.be
/~pieter.delobelle
2
Humor
Intrinsically human!
AI-Complete problem?
3
Incongruity-Resolution Theory
Based on: Ritchie, G. (1999). Developing the incongruity-resolution theory.
Two fish are in a tank.
Says one to the other:
“Do you know how to
drive this thing?”
4
Incongruity-Resolution Theory
Based on: Ritchie, G. (1999). Developing the incongruity-resolution theory.
Two fish are in a tank.
Says one to the other:
“Do you know how to
drive this thing?”
Setup
5
Incongruity-Resolution Theory
Based on: Ritchie, G. (1999). Developing the incongruity-resolution theory.
Obvious
Interpretation
Two fish are in a tank.
Says one to the other:
“Do you know how to
drive this thing?”
Setup
6
Incongruity-Resolution Theory
Based on: Ritchie, G. (1999). Developing the incongruity-resolution theory.
Obvious
Interpretation
Two fish are in a tank.
Says one to the other:
“Do you know how to
drive this thing?”
Setup
Punchline
7
Incongruity-Resolution Theory
Based on: Ritchie, G. (1999). Developing the incongruity-resolution theory.
Obvious
Interpretation
Hidden
Interpretation
Two fish are in a tank.
Says one to the other:
“Do you know how to
drive this thing?”
Setup
Punchline
8
Human-focused definition!
Machine should not only spot
two mental images
Obvious
Interpretation
Hidden
Interpretation
But also this is
not too hard or too easy for a human!
9
Transformer models
Large language models, pretrained on large corpora
Outperforming previous neural architectures
on most language tasks
GPT-2 & GPT-3
Completes any textual prompt
BERT
Classifies any text sequence / token
Brown, Tom B., et al. "Language models are few-shot learners."
Devlin, J., Chang, M. W., Lee, K., & Toutanova, K. (2018). Bert: Pre-training of deep bidirectional transformers for language understanding
10
Not just for English  Dutch RobBERT!
RobBERT is a Dutch RoBERTa-based language model
Vastly outperforms other architectures on large
range of Dutch NLP tasks & generally outperforms
other BERT models, especially on small datasets
Easy to use: just import & fine-tune on your task
But can it learn to recognise humor?
Delobelle, P., Winters, T., & Berendt, B. (2020). RobBERT: a dutch RoBERTa-based language model.
RobBERT
Our Dutch BERT-like model
from transformers import RobertaTokenizer, RobertaForSequenceClassification
tokenizer = RobertaTokenizer.from_pretrained("pdelobelle/robbert-v2-dutch-base")
model = RobertaForSequenceClassification.from_pretrained("pdelobelle/robbert-v2-dutch-base")
11
Early Humor Detector
• Designed humor features e.g. alliteration, antonym, adult slang...
• Used Naive Bayes and Support Vector Machines
• Task: One-liners vs news, neutral corpus & proverbs
Mihalcea, R., & Strapparava, C. (2005). Making computers laugh: Investigations in automatic humor recognition.
12
But is this a good dataset?
News & proverbs have completely different types
of words than jokes!
 Looking at word frequencies is often already “enough”!
Is this really humor detection?
13
Jokes are fragile!
Two fish are in a tank. Says one to the other:
“Do you know how to drive this thing?”
Winters, T. (2019). Generating philosophical statements using interpolated markov models and dynamic templates.
14
Jokes are fragile!
Two fish are in a tank. Says one to the other:
“Do you know how to drive this thing?”
Generate non-jokes using dynamic templates! (@TorfsBot)
Winters, T. (2019). Generating philosophical statements using interpolated markov models and dynamic templates.
15
Jokes are fragile!
Two fish are in a tank. Says one to the other:
“Do you know how to drive this thing?”
men
Generate non-jokes using dynamic templates! (@TorfsBot)
Winters, T. (2019). Generating philosophical statements using interpolated markov models and dynamic templates.
16
Jokes are fragile!
Two fish are in a tank. Says one to the other:
“Do you know how to drive this thing?”
men bar
Generate non-jokes using dynamic templates! (@TorfsBot)
Winters, T. (2019). Generating philosophical statements using interpolated markov models and dynamic templates.
17
Jokes are fragile!
Two fish are in a tank. Says one to the other:
“Do you know how to drive this thing?”
men bar
Generate non-jokes using dynamic templates! (@TorfsBot)
Word-based features won’t work anymore!
Winters, T. (2019). Generating philosophical statements using interpolated markov models and dynamic templates.
18
Examples of generated Dutch non-jokes
Het is groen en het is een mummie?
Kermit de Waterkant
Wat is het toppunt van principe?
1) Wachten totdat een Nederlander gaat twijfelen
2) Een Zuster met een autoladder
3) Een brandwacht brandmeester met een brandmeester
van 9 maanden
“Ober, kunt u die schrik uit mijn politieman halen? Want
ik eet liever alleen.”
"Mijn hond is heel vreselijk: Hij schreeuwt mij iedere zus
de broer.“
"Maar dat is toch niet zo heel vreselijk?“
"Jawel, want ik heb geen rapport!"
Wat staat er midden in het bos?
De kapper.
Er loopt een super vriendelijk blondje langs een armband.
Last er een toonbank: “zo, waargaan die mooie mannen
heen?” Blondje: “naar de barkeeper als er niets tussen
komt…”
Hoe heet de vrouw van Sinterklaas?
Keukentafel.
"Twee tanden zwemmen in de zee en ze zien een
stamgast op een stamgast. De ene raad zegt tegen de
andere raad: 'Hé kijk! Ons eten op een bord!'"
19
51%
60%
50%
94% 94%
47%
94% 94%
47%
99% 96%
89%
Jokes vs News Jokes vs Proverbs Jokes vs Generated Jokes
Binary classification of Dutch jokes versus texts from other domains
Naive Bayes LSTM CNN RobBERT
Much more challenging dataset!
More truthful humor detection?
20
Conclusion
Novel joke detection
dataset creation method
Easily scales to other languages
Illustrated humor
insights of transformer
Strongly outperforming
previous neural networks
Created first Dutch
humor detectors
Humour
https://github.com/twinters/dutch-humor-detection
21
Some images (based on the works) of dooder & alekksall on freepik.com
Thomas Winters & Pieter Delobelle
PhD Students at DTAI, KU Leuven
firstname.lastname@kuleuven.be
Dutch Humor Detection
by Generating Negative Examples
@thomas_wint
thomaswinters.be
@pieterdelobelle
people.cs.kuleuven.be
/~pieter.delobelle

Mais conteúdo relacionado

Semelhante a Dutch Humor Detection by Generating Negative Examples

STEAM to Screen: Mathematics
STEAM to Screen: MathematicsSTEAM to Screen: Mathematics
STEAM to Screen: MathematicsKellyAnn Bonnell
 
You Will Survive Doomsday Bruce Beach (File Version 2)
You  Will  Survive  Doomsday    Bruce  Beach (File Version 2)You  Will  Survive  Doomsday    Bruce  Beach (File Version 2)
You Will Survive Doomsday Bruce Beach (File Version 2)Edward Dobson
 
Villain Essay. How to write a magnificent villain Writing motivation, Book w...
Villain Essay. How to write a magnificent villain  Writing motivation, Book w...Villain Essay. How to write a magnificent villain  Writing motivation, Book w...
Villain Essay. How to write a magnificent villain Writing motivation, Book w...Holly Warner
 
Why Should You Write Short St. Online assignment writing service.
Why Should You Write Short St. Online assignment writing service.Why Should You Write Short St. Online assignment writing service.
Why Should You Write Short St. Online assignment writing service.Gina Alfaro
 
6.1 making it stick lecture slides student notes
6.1 making it stick lecture slides student notes6.1 making it stick lecture slides student notes
6.1 making it stick lecture slides student notesNancy Bray
 
TEXTOS SELECTIVDADE
TEXTOS SELECTIVDADETEXTOS SELECTIVDADE
TEXTOS SELECTIVDADEecursocig
 
BACK TO THE DRAWING BOARD - The Myth of Data-Driven NLU and How to go Forward...
BACK TO THE DRAWING BOARD - The Myth of Data-Driven NLU and How to go Forward...BACK TO THE DRAWING BOARD - The Myth of Data-Driven NLU and How to go Forward...
BACK TO THE DRAWING BOARD - The Myth of Data-Driven NLU and How to go Forward...Walid Saba
 
Computational Humor: Can a machine have a sense of humor? (2020)
Computational Humor: Can a machine have a sense of humor? (2020)Computational Humor: Can a machine have a sense of humor? (2020)
Computational Humor: Can a machine have a sense of humor? (2020)Thomas Winters
 
The Future of AI: Going Beyond Deep Learning, Watson, and the Semantic Web
The Future of AI: Going BeyondDeep Learning, Watson, and the Semantic WebThe Future of AI: Going BeyondDeep Learning, Watson, and the Semantic Web
The Future of AI: Going Beyond Deep Learning, Watson, and the Semantic WebJames Hendler
 
Essay On World Cup Cricket 2011 In Hindi
Essay On World Cup Cricket 2011 In HindiEssay On World Cup Cricket 2011 In Hindi
Essay On World Cup Cricket 2011 In HindiLisa Johnson
 
8 Primary Writing Paper Template. Online assignment writing service.
8 Primary Writing Paper Template. Online assignment writing service.8 Primary Writing Paper Template. Online assignment writing service.
8 Primary Writing Paper Template. Online assignment writing service.Angela Roberts
 
Essay On Energy Conservation And Management
Essay On Energy Conservation And ManagementEssay On Energy Conservation And Management
Essay On Energy Conservation And ManagementMissy Hanten
 
Caderno do Aluno Inglês 2 ano vol 2 2014-2017
Caderno do Aluno Inglês 2 ano vol 2 2014-2017Caderno do Aluno Inglês 2 ano vol 2 2014-2017
Caderno do Aluno Inglês 2 ano vol 2 2014-2017Diogo Santos
 
Caderno doaluno 2014_2017_vol2_baixa_lc_lem_ingles_em_2s
Caderno doaluno 2014_2017_vol2_baixa_lc_lem_ingles_em_2sCaderno doaluno 2014_2017_vol2_baixa_lc_lem_ingles_em_2s
Caderno doaluno 2014_2017_vol2_baixa_lc_lem_ingles_em_2sGerson de Oliveira
 
Lowering Drinking Age Persuasive Essay
Lowering Drinking Age Persuasive EssayLowering Drinking Age Persuasive Essay
Lowering Drinking Age Persuasive EssayKimberly Walters
 
Towards and Enjoyable Career in Scientific Research
Towards and Enjoyable Career in Scientific ResearchTowards and Enjoyable Career in Scientific Research
Towards and Enjoyable Career in Scientific ResearchSagar Sen
 
Exploring the Boundaries of Artificial Intelligence (or "Modern AI")
Exploring the Boundaries of Artificial Intelligence (or "Modern AI")Exploring the Boundaries of Artificial Intelligence (or "Modern AI")
Exploring the Boundaries of Artificial Intelligence (or "Modern AI")James Hendler
 
Pse 2012-better-tools-for-a-better-world
Pse 2012-better-tools-for-a-better-worldPse 2012-better-tools-for-a-better-world
Pse 2012-better-tools-for-a-better-worldPaul Roeland
 
Developmental Psychology Theoretical Approaches Essay
 Developmental Psychology Theoretical Approaches Essay Developmental Psychology Theoretical Approaches Essay
Developmental Psychology Theoretical Approaches EssayPatty Buckley
 

Semelhante a Dutch Humor Detection by Generating Negative Examples (20)

STEAM to Screen: Mathematics
STEAM to Screen: MathematicsSTEAM to Screen: Mathematics
STEAM to Screen: Mathematics
 
You Will Survive Doomsday Bruce Beach (File Version 2)
You  Will  Survive  Doomsday    Bruce  Beach (File Version 2)You  Will  Survive  Doomsday    Bruce  Beach (File Version 2)
You Will Survive Doomsday Bruce Beach (File Version 2)
 
Villain Essay. How to write a magnificent villain Writing motivation, Book w...
Villain Essay. How to write a magnificent villain  Writing motivation, Book w...Villain Essay. How to write a magnificent villain  Writing motivation, Book w...
Villain Essay. How to write a magnificent villain Writing motivation, Book w...
 
Why Should You Write Short St. Online assignment writing service.
Why Should You Write Short St. Online assignment writing service.Why Should You Write Short St. Online assignment writing service.
Why Should You Write Short St. Online assignment writing service.
 
6.1 making it stick lecture slides student notes
6.1 making it stick lecture slides student notes6.1 making it stick lecture slides student notes
6.1 making it stick lecture slides student notes
 
TEXTOS SELECTIVDADE
TEXTOS SELECTIVDADETEXTOS SELECTIVDADE
TEXTOS SELECTIVDADE
 
BACK TO THE DRAWING BOARD - The Myth of Data-Driven NLU and How to go Forward...
BACK TO THE DRAWING BOARD - The Myth of Data-Driven NLU and How to go Forward...BACK TO THE DRAWING BOARD - The Myth of Data-Driven NLU and How to go Forward...
BACK TO THE DRAWING BOARD - The Myth of Data-Driven NLU and How to go Forward...
 
Computational Humor: Can a machine have a sense of humor? (2020)
Computational Humor: Can a machine have a sense of humor? (2020)Computational Humor: Can a machine have a sense of humor? (2020)
Computational Humor: Can a machine have a sense of humor? (2020)
 
The Future of AI: Going Beyond Deep Learning, Watson, and the Semantic Web
The Future of AI: Going BeyondDeep Learning, Watson, and the Semantic WebThe Future of AI: Going BeyondDeep Learning, Watson, and the Semantic Web
The Future of AI: Going Beyond Deep Learning, Watson, and the Semantic Web
 
Essay On World Cup Cricket 2011 In Hindi
Essay On World Cup Cricket 2011 In HindiEssay On World Cup Cricket 2011 In Hindi
Essay On World Cup Cricket 2011 In Hindi
 
8 Primary Writing Paper Template. Online assignment writing service.
8 Primary Writing Paper Template. Online assignment writing service.8 Primary Writing Paper Template. Online assignment writing service.
8 Primary Writing Paper Template. Online assignment writing service.
 
Essay On Energy Conservation And Management
Essay On Energy Conservation And ManagementEssay On Energy Conservation And Management
Essay On Energy Conservation And Management
 
Caderno do Aluno Inglês 2 ano vol 2 2014-2017
Caderno do Aluno Inglês 2 ano vol 2 2014-2017Caderno do Aluno Inglês 2 ano vol 2 2014-2017
Caderno do Aluno Inglês 2 ano vol 2 2014-2017
 
Caderno doaluno 2014_2017_vol2_baixa_lc_lem_ingles_em_2s
Caderno doaluno 2014_2017_vol2_baixa_lc_lem_ingles_em_2sCaderno doaluno 2014_2017_vol2_baixa_lc_lem_ingles_em_2s
Caderno doaluno 2014_2017_vol2_baixa_lc_lem_ingles_em_2s
 
Lowering Drinking Age Persuasive Essay
Lowering Drinking Age Persuasive EssayLowering Drinking Age Persuasive Essay
Lowering Drinking Age Persuasive Essay
 
Towards and Enjoyable Career in Scientific Research
Towards and Enjoyable Career in Scientific ResearchTowards and Enjoyable Career in Scientific Research
Towards and Enjoyable Career in Scientific Research
 
Review My Essay
Review My EssayReview My Essay
Review My Essay
 
Exploring the Boundaries of Artificial Intelligence (or "Modern AI")
Exploring the Boundaries of Artificial Intelligence (or "Modern AI")Exploring the Boundaries of Artificial Intelligence (or "Modern AI")
Exploring the Boundaries of Artificial Intelligence (or "Modern AI")
 
Pse 2012-better-tools-for-a-better-world
Pse 2012-better-tools-for-a-better-worldPse 2012-better-tools-for-a-better-world
Pse 2012-better-tools-for-a-better-world
 
Developmental Psychology Theoretical Approaches Essay
 Developmental Psychology Theoretical Approaches Essay Developmental Psychology Theoretical Approaches Essay
Developmental Psychology Theoretical Approaches Essay
 

Mais de Thomas Winters

Prompt engineering: De kunst van het leren communiceren met AI
Prompt engineering: De kunst van het leren communiceren met AIPrompt engineering: De kunst van het leren communiceren met AI
Prompt engineering: De kunst van het leren communiceren met AIThomas Winters
 
Wetenschapscommunicatie on steroids
Wetenschapscommunicatie on steroidsWetenschapscommunicatie on steroids
Wetenschapscommunicatie on steroidsThomas Winters
 
TorfsBot or Not? Evaluating User Perception on Imitative Text Generation (CLI...
TorfsBot or Not? Evaluating User Perception on Imitative Text Generation (CLI...TorfsBot or Not? Evaluating User Perception on Imitative Text Generation (CLI...
TorfsBot or Not? Evaluating User Perception on Imitative Text Generation (CLI...Thomas Winters
 
Prompt engineering: de kunst van het leren communiceren met AI (Juni 2023)
Prompt engineering: de kunst van het leren communiceren met AI (Juni 2023)Prompt engineering: de kunst van het leren communiceren met AI (Juni 2023)
Prompt engineering: de kunst van het leren communiceren met AI (Juni 2023)Thomas Winters
 
Hoe werken tekstgenerators? (Special Guest in Lieven Scheire's AI voorstelling)
Hoe werken tekstgenerators? (Special Guest in Lieven Scheire's AI voorstelling)Hoe werken tekstgenerators? (Special Guest in Lieven Scheire's AI voorstelling)
Hoe werken tekstgenerators? (Special Guest in Lieven Scheire's AI voorstelling)Thomas Winters
 
Pret met Creatieve Computers
Pret met Creatieve ComputersPret met Creatieve Computers
Pret met Creatieve ComputersThomas Winters
 
Hoe leer je computers humor?
Hoe leer je computers humor?Hoe leer je computers humor?
Hoe leer je computers humor?Thomas Winters
 
Hoe schrijven computers zelf tekst? (Kinderlezing)
Hoe schrijven computers zelf tekst? (Kinderlezing)Hoe schrijven computers zelf tekst? (Kinderlezing)
Hoe schrijven computers zelf tekst? (Kinderlezing)Thomas Winters
 
AI als creatieve partner
AI als creatieve partnerAI als creatieve partner
AI als creatieve partnerThomas Winters
 
De magie achter afbeeldingsgenerators
De magie achter afbeeldingsgeneratorsDe magie achter afbeeldingsgenerators
De magie achter afbeeldingsgeneratorsThomas Winters
 
How to Attract & Survive Media Attention as PhD
How to Attract & Survive Media Attention as PhDHow to Attract & Survive Media Attention as PhD
How to Attract & Survive Media Attention as PhDThomas Winters
 
How can AI be a creative partner for PR & marketing?
How can AI be a creative partner for PR & marketing?How can AI be a creative partner for PR & marketing?
How can AI be a creative partner for PR & marketing?Thomas Winters
 
Beter leren praten met Artificiële Intelligentie
Beter leren praten met Artificiële IntelligentieBeter leren praten met Artificiële Intelligentie
Beter leren praten met Artificiële IntelligentieThomas Winters
 
TorfsBotOrNot @ Nerdland Festival
TorfsBotOrNot @ Nerdland FestivalTorfsBotOrNot @ Nerdland Festival
TorfsBotOrNot @ Nerdland FestivalThomas Winters
 
Creative AI for Improv Theatre
Creative AI for Improv TheatreCreative AI for Improv Theatre
Creative AI for Improv TheatreThomas Winters
 
Humor Workshop: Hoe schrijf je satire? (KU Leugen)
Humor Workshop: Hoe schrijf je satire? (KU Leugen)Humor Workshop: Hoe schrijf je satire? (KU Leugen)
Humor Workshop: Hoe schrijf je satire? (KU Leugen)Thomas Winters
 
Survival of the Wittiest: Evolving Satire with Language Models
Survival of the Wittiest: Evolving Satire with Language ModelsSurvival of the Wittiest: Evolving Satire with Language Models
Survival of the Wittiest: Evolving Satire with Language ModelsThomas Winters
 
Discovering Textual Structures: Generative Grammar Induction using Template T...
Discovering Textual Structures: Generative Grammar Induction using Template T...Discovering Textual Structures: Generative Grammar Induction using Template T...
Discovering Textual Structures: Generative Grammar Induction using Template T...Thomas Winters
 
Modelling Mutually Interactive Fictional Character Conversational Agents
Modelling Mutually Interactive Fictional Character Conversational AgentsModelling Mutually Interactive Fictional Character Conversational Agents
Modelling Mutually Interactive Fictional Character Conversational AgentsThomas Winters
 
Generating Philosophical Statements using Interpolated Markov Models and Dyna...
Generating Philosophical Statements using Interpolated Markov Models and Dyna...Generating Philosophical Statements using Interpolated Markov Models and Dyna...
Generating Philosophical Statements using Interpolated Markov Models and Dyna...Thomas Winters
 

Mais de Thomas Winters (20)

Prompt engineering: De kunst van het leren communiceren met AI
Prompt engineering: De kunst van het leren communiceren met AIPrompt engineering: De kunst van het leren communiceren met AI
Prompt engineering: De kunst van het leren communiceren met AI
 
Wetenschapscommunicatie on steroids
Wetenschapscommunicatie on steroidsWetenschapscommunicatie on steroids
Wetenschapscommunicatie on steroids
 
TorfsBot or Not? Evaluating User Perception on Imitative Text Generation (CLI...
TorfsBot or Not? Evaluating User Perception on Imitative Text Generation (CLI...TorfsBot or Not? Evaluating User Perception on Imitative Text Generation (CLI...
TorfsBot or Not? Evaluating User Perception on Imitative Text Generation (CLI...
 
Prompt engineering: de kunst van het leren communiceren met AI (Juni 2023)
Prompt engineering: de kunst van het leren communiceren met AI (Juni 2023)Prompt engineering: de kunst van het leren communiceren met AI (Juni 2023)
Prompt engineering: de kunst van het leren communiceren met AI (Juni 2023)
 
Hoe werken tekstgenerators? (Special Guest in Lieven Scheire's AI voorstelling)
Hoe werken tekstgenerators? (Special Guest in Lieven Scheire's AI voorstelling)Hoe werken tekstgenerators? (Special Guest in Lieven Scheire's AI voorstelling)
Hoe werken tekstgenerators? (Special Guest in Lieven Scheire's AI voorstelling)
 
Pret met Creatieve Computers
Pret met Creatieve ComputersPret met Creatieve Computers
Pret met Creatieve Computers
 
Hoe leer je computers humor?
Hoe leer je computers humor?Hoe leer je computers humor?
Hoe leer je computers humor?
 
Hoe schrijven computers zelf tekst? (Kinderlezing)
Hoe schrijven computers zelf tekst? (Kinderlezing)Hoe schrijven computers zelf tekst? (Kinderlezing)
Hoe schrijven computers zelf tekst? (Kinderlezing)
 
AI als creatieve partner
AI als creatieve partnerAI als creatieve partner
AI als creatieve partner
 
De magie achter afbeeldingsgenerators
De magie achter afbeeldingsgeneratorsDe magie achter afbeeldingsgenerators
De magie achter afbeeldingsgenerators
 
How to Attract & Survive Media Attention as PhD
How to Attract & Survive Media Attention as PhDHow to Attract & Survive Media Attention as PhD
How to Attract & Survive Media Attention as PhD
 
How can AI be a creative partner for PR & marketing?
How can AI be a creative partner for PR & marketing?How can AI be a creative partner for PR & marketing?
How can AI be a creative partner for PR & marketing?
 
Beter leren praten met Artificiële Intelligentie
Beter leren praten met Artificiële IntelligentieBeter leren praten met Artificiële Intelligentie
Beter leren praten met Artificiële Intelligentie
 
TorfsBotOrNot @ Nerdland Festival
TorfsBotOrNot @ Nerdland FestivalTorfsBotOrNot @ Nerdland Festival
TorfsBotOrNot @ Nerdland Festival
 
Creative AI for Improv Theatre
Creative AI for Improv TheatreCreative AI for Improv Theatre
Creative AI for Improv Theatre
 
Humor Workshop: Hoe schrijf je satire? (KU Leugen)
Humor Workshop: Hoe schrijf je satire? (KU Leugen)Humor Workshop: Hoe schrijf je satire? (KU Leugen)
Humor Workshop: Hoe schrijf je satire? (KU Leugen)
 
Survival of the Wittiest: Evolving Satire with Language Models
Survival of the Wittiest: Evolving Satire with Language ModelsSurvival of the Wittiest: Evolving Satire with Language Models
Survival of the Wittiest: Evolving Satire with Language Models
 
Discovering Textual Structures: Generative Grammar Induction using Template T...
Discovering Textual Structures: Generative Grammar Induction using Template T...Discovering Textual Structures: Generative Grammar Induction using Template T...
Discovering Textual Structures: Generative Grammar Induction using Template T...
 
Modelling Mutually Interactive Fictional Character Conversational Agents
Modelling Mutually Interactive Fictional Character Conversational AgentsModelling Mutually Interactive Fictional Character Conversational Agents
Modelling Mutually Interactive Fictional Character Conversational Agents
 
Generating Philosophical Statements using Interpolated Markov Models and Dyna...
Generating Philosophical Statements using Interpolated Markov Models and Dyna...Generating Philosophical Statements using Interpolated Markov Models and Dyna...
Generating Philosophical Statements using Interpolated Markov Models and Dyna...
 

Último

%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...masabamasaba
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durbanmasabamasaba
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is insideshinachiaurasa2
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsBert Jan Schrijver
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyviewmasabamasaba
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Hararemasabamasaba
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationShrmpro
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfkalichargn70th171
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfVishalKumarJha10
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 

Último (20)

Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 

Dutch Humor Detection by Generating Negative Examples

  • 1. 1 Dutch Humor Detection by Generating Negative Examples Thomas Winters & Pieter Delobelle PhD Students at DTAI, KU Leuven firstname.lastname@kuleuven.be @thomas_wint thomaswinters.be @pieterdelobelle people.cs.kuleuven.be /~pieter.delobelle
  • 3. 3 Incongruity-Resolution Theory Based on: Ritchie, G. (1999). Developing the incongruity-resolution theory. Two fish are in a tank. Says one to the other: “Do you know how to drive this thing?”
  • 4. 4 Incongruity-Resolution Theory Based on: Ritchie, G. (1999). Developing the incongruity-resolution theory. Two fish are in a tank. Says one to the other: “Do you know how to drive this thing?” Setup
  • 5. 5 Incongruity-Resolution Theory Based on: Ritchie, G. (1999). Developing the incongruity-resolution theory. Obvious Interpretation Two fish are in a tank. Says one to the other: “Do you know how to drive this thing?” Setup
  • 6. 6 Incongruity-Resolution Theory Based on: Ritchie, G. (1999). Developing the incongruity-resolution theory. Obvious Interpretation Two fish are in a tank. Says one to the other: “Do you know how to drive this thing?” Setup Punchline
  • 7. 7 Incongruity-Resolution Theory Based on: Ritchie, G. (1999). Developing the incongruity-resolution theory. Obvious Interpretation Hidden Interpretation Two fish are in a tank. Says one to the other: “Do you know how to drive this thing?” Setup Punchline
  • 8. 8 Human-focused definition! Machine should not only spot two mental images Obvious Interpretation Hidden Interpretation But also this is not too hard or too easy for a human!
  • 9. 9 Transformer models Large language models, pretrained on large corpora Outperforming previous neural architectures on most language tasks GPT-2 & GPT-3 Completes any textual prompt BERT Classifies any text sequence / token Brown, Tom B., et al. "Language models are few-shot learners." Devlin, J., Chang, M. W., Lee, K., & Toutanova, K. (2018). Bert: Pre-training of deep bidirectional transformers for language understanding
  • 10. 10 Not just for English  Dutch RobBERT! RobBERT is a Dutch RoBERTa-based language model Vastly outperforms other architectures on large range of Dutch NLP tasks & generally outperforms other BERT models, especially on small datasets Easy to use: just import & fine-tune on your task But can it learn to recognise humor? Delobelle, P., Winters, T., & Berendt, B. (2020). RobBERT: a dutch RoBERTa-based language model. RobBERT Our Dutch BERT-like model from transformers import RobertaTokenizer, RobertaForSequenceClassification tokenizer = RobertaTokenizer.from_pretrained("pdelobelle/robbert-v2-dutch-base") model = RobertaForSequenceClassification.from_pretrained("pdelobelle/robbert-v2-dutch-base")
  • 11. 11 Early Humor Detector • Designed humor features e.g. alliteration, antonym, adult slang... • Used Naive Bayes and Support Vector Machines • Task: One-liners vs news, neutral corpus & proverbs Mihalcea, R., & Strapparava, C. (2005). Making computers laugh: Investigations in automatic humor recognition.
  • 12. 12 But is this a good dataset? News & proverbs have completely different types of words than jokes!  Looking at word frequencies is often already “enough”! Is this really humor detection?
  • 13. 13 Jokes are fragile! Two fish are in a tank. Says one to the other: “Do you know how to drive this thing?” Winters, T. (2019). Generating philosophical statements using interpolated markov models and dynamic templates.
  • 14. 14 Jokes are fragile! Two fish are in a tank. Says one to the other: “Do you know how to drive this thing?” Generate non-jokes using dynamic templates! (@TorfsBot) Winters, T. (2019). Generating philosophical statements using interpolated markov models and dynamic templates.
  • 15. 15 Jokes are fragile! Two fish are in a tank. Says one to the other: “Do you know how to drive this thing?” men Generate non-jokes using dynamic templates! (@TorfsBot) Winters, T. (2019). Generating philosophical statements using interpolated markov models and dynamic templates.
  • 16. 16 Jokes are fragile! Two fish are in a tank. Says one to the other: “Do you know how to drive this thing?” men bar Generate non-jokes using dynamic templates! (@TorfsBot) Winters, T. (2019). Generating philosophical statements using interpolated markov models and dynamic templates.
  • 17. 17 Jokes are fragile! Two fish are in a tank. Says one to the other: “Do you know how to drive this thing?” men bar Generate non-jokes using dynamic templates! (@TorfsBot) Word-based features won’t work anymore! Winters, T. (2019). Generating philosophical statements using interpolated markov models and dynamic templates.
  • 18. 18 Examples of generated Dutch non-jokes Het is groen en het is een mummie? Kermit de Waterkant Wat is het toppunt van principe? 1) Wachten totdat een Nederlander gaat twijfelen 2) Een Zuster met een autoladder 3) Een brandwacht brandmeester met een brandmeester van 9 maanden “Ober, kunt u die schrik uit mijn politieman halen? Want ik eet liever alleen.” "Mijn hond is heel vreselijk: Hij schreeuwt mij iedere zus de broer.“ "Maar dat is toch niet zo heel vreselijk?“ "Jawel, want ik heb geen rapport!" Wat staat er midden in het bos? De kapper. Er loopt een super vriendelijk blondje langs een armband. Last er een toonbank: “zo, waargaan die mooie mannen heen?” Blondje: “naar de barkeeper als er niets tussen komt…” Hoe heet de vrouw van Sinterklaas? Keukentafel. "Twee tanden zwemmen in de zee en ze zien een stamgast op een stamgast. De ene raad zegt tegen de andere raad: 'Hé kijk! Ons eten op een bord!'"
  • 19. 19 51% 60% 50% 94% 94% 47% 94% 94% 47% 99% 96% 89% Jokes vs News Jokes vs Proverbs Jokes vs Generated Jokes Binary classification of Dutch jokes versus texts from other domains Naive Bayes LSTM CNN RobBERT Much more challenging dataset! More truthful humor detection?
  • 20. 20 Conclusion Novel joke detection dataset creation method Easily scales to other languages Illustrated humor insights of transformer Strongly outperforming previous neural networks Created first Dutch humor detectors Humour https://github.com/twinters/dutch-humor-detection
  • 21. 21 Some images (based on the works) of dooder & alekksall on freepik.com Thomas Winters & Pieter Delobelle PhD Students at DTAI, KU Leuven firstname.lastname@kuleuven.be Dutch Humor Detection by Generating Negative Examples @thomas_wint thomaswinters.be @pieterdelobelle people.cs.kuleuven.be /~pieter.delobelle