SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Soft Cardinality: A Parameterized
Similarity Function for Text Comparison
Sergio Jimenez Claudia Becerra Alexander Gelbukh
Center for Computing Research,
Instituto Politécnico Nacional
(National Polytechnic (Technical)
Institute), Mexico
Outline
• Cardinality-based similarity functions
• What is Soft Cardinality?
• Parameterized resemblance coefficient
• Building text similarity functions
• Optimizing parameters
• Results in STS SemEval-2012
• Conclusions
Cardinality-based similarity functions
Jaccard (1905)
BA
BA
BASIM ),(
Dice (1945)
BA
BA
BASIM
5.05.0
),(
Only two thing are needed:
1. Cardinality function
2. Resemblance coefficient
""
""
referent
iescommonalit
Soft cardinality
Parameterized
resemblance
coefficient
Soft Cardinality
A= , ,
B= , ,
|A|=3
|B|=3
Classical cardinality crisp count
Soft cardinality soft count
|A|’=2.9
|B|’=1.3
How to compute soft cardinality?
naaaA ,,, 21 
n
i
n
j
ji aasim
A
1
1
'
,
1
1),(; aasima
),(),(;, absimbasimba
]1,0[),(;, basimba
8A
'
A
67.2
'
A
71.3
'
B 92.3
'
BA
''''
BABABA
46.2
'
BA
63.0'
'
BA
BA
40.0
BA
BA
Soft cardinatily Classical cardinatily
An extended soft cardinality model
n
i
n
j
ji aasim
A
1
1
'
,
1
iaw Weights for the elements (words) e.g. tf-idf
iaw
p Controls the “softness” of the soft cardinality
0p AAp
'
p
iawA
'
8A
Parameterized resemblance coefficient
BA
BA
BASIM
5.05.0
),(
The referent is a balance
between the “sizes” of A and B
Tversky (1977)
“the son resembles the father” not
“the father resembles the son”
“an ellipse is like a circle” not
“a circle is like an ellipse”
“North Korea is like Red China” not
“Red China is like North Korea”
“the son resembles the father” not
“the father resembles the son”
“an ellipse is like a circle” not
“a circle is like an ellipse”
“North Korea is like Red China” not
“Red China is like North Korea”
A B
In general “the variant is more similar to the prototype”
A
BA
BASIM ),(
BA
BA
BASIM
,min
),(
Overlap coefficient
Parameterized resemblance coefficient
BA
BA
BASIM
5.05.0
),(
),max(5.0),min(5.0
),(
BABA
BA
BASIM
),max()1(),min(
),(
BABA
BA
BASIM
0 0.5 1
Overlap coeff. Dice coeff.
),max( BA
BA
Tversky
Parameterized resemblance coefficient
),max()1(),min(
),(
BABA
biasBA
BASIM
|A| |B|
bias
0.0 0.2 -0.2
3 5 2 0.5 0.550 0.450
6 10 4 0.5 0.525 0.475
9 15 6 0.5 0.517 0.483
BA
#1
#2
#3
Building text similarity functions
),max()1(),min(
),( ''''
'
BABA
biasBA
BASIM
Soft cardinality
n
i
n
j
p
ji
a
aasim
wA i
1
1
'
,
1
),max()1(),min(
),(
iisimiisim
simii
ji
baba
biasba
basim
),( BASIM
),( ji basim
Compares two texts as
sets of words
Compares two words
as sets of q-grams
Optimal parametes found by hill climbing
DATA SET*
q-grams
parameters Pearson
bias p biassim r
MSRpar.training [4] 0.62 1.14 0.77 -0.04 -0.38 0.6598
MSR.par.test [4] 0.60 1.02 0.90 -0.02 -0.40 0.6335
MSRvid.training [1:4] 0.42 -0.80 2.28 0.18 0.08 0.8323
MSRvid.test [1:4] 0.32 -0.80 1.88 1.08 0.08 0.8579
SMTeuro.training [2:4] 0.74 -0.06 0.91 1.88 2.90 0.6193
SMTeuro.test [2:4] 0.84 -0.16 0.71 1.78 3.00 0.5178
OnWN.test [2:5] 0.88 -0.62 1.36 -0.02 -0.70 0.7202
SMTnews.test [1:4] 0.88 0.88 1.57 0.80 3.21 0.5344
sim
RankMean= 0.6788)( ia aidfw i
* Lemmatized with Porter stemmer
Used Resources
Run baer/task6-UKP-run2
jan_snajder/task6-
takelab-simple
sgjimenezv/task6-
SOFT-CARDINALITY
Used
resoruces
KB similarity
Lemmatizer
String Similarity
Dictionaries
Distributional thesaurus
Monolingual corpora
Multilingual corpora
Wikipedia
WordNet
Distributional Similarity
POS tagger
SMT
Textual Entailment
Other
KB similarity
Lemmatizer
Dictionaries
Distributional thesaurus
Monolingual corpora
Stop words
Wikipedia
WordNet
Distributional Similarity
Lexical Substitution
Machine Learning
POS tagger
Other
KB similarity
Lemmatizer
String Similarity
Mean (r) 0.6773 0.6753 0.6708
RankMean 1st 2nd 3rd
Difference 0.969% 0.671% 0%
Results for other measures
Cosine tf-idf + lemmatizer
RankMean=0.6326 (10th)
SoftTFIDF+ lemmatizer
RankMean=0.6415 (7th)
Soft Cardinality+lemmatizer+
Paramet.Res.Coeff.+Hill climbing
RankMean=0.6788
Text A
TextB
Text A
TextB
Text A Text B
TextBTextA
Conclusions
1. The soft cardinality approach proved to be a
an effective and low-cost text similarity
function, even in Semantic Textual Similarity
scenarios.
2. The set of parameters of the proposed
function were maningfull and easy to find
their optimal values when training data is
available.

Weitere ähnliche Inhalte

Kürzlich hochgeladen

🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...Apsara Of India
 
Genesis 1:6 || Meditate the Scripture daily verse by verse
Genesis 1:6  ||  Meditate the Scripture daily verse by verseGenesis 1:6  ||  Meditate the Scripture daily verse by verse
Genesis 1:6 || Meditate the Scripture daily verse by versemaricelcanoynuay
 
DARK TRAVEL AGENCY presented by Khuda Bux
DARK TRAVEL AGENCY presented by Khuda BuxDARK TRAVEL AGENCY presented by Khuda Bux
DARK TRAVEL AGENCY presented by Khuda BuxBeEducate
 
Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779
Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779
Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779Delhi Call girls
 
visa consultant | 📞📞 03094429236 || Best Study Visa Consultant
visa consultant | 📞📞 03094429236 || Best Study Visa Consultantvisa consultant | 📞📞 03094429236 || Best Study Visa Consultant
visa consultant | 📞📞 03094429236 || Best Study Visa ConsultantSherazi Tours
 
Hire 💕 8617697112 Champawat Call Girls Service Call Girls Agency
Hire 💕 8617697112 Champawat Call Girls Service Call Girls AgencyHire 💕 8617697112 Champawat Call Girls Service Call Girls Agency
Hire 💕 8617697112 Champawat Call Girls Service Call Girls AgencyNitya salvi
 
9 Days Kenya Ultimate Safari Odyssey with Kibera Holiday Safaris
9 Days Kenya Ultimate Safari Odyssey with Kibera Holiday Safaris9 Days Kenya Ultimate Safari Odyssey with Kibera Holiday Safaris
9 Days Kenya Ultimate Safari Odyssey with Kibera Holiday SafarisKibera Holiday Safaris Safaris
 
💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh HaldighatiApsara Of India
 
How to Get Unpublished Flight Deals and Discounts?
How to Get Unpublished Flight Deals and Discounts?How to Get Unpublished Flight Deals and Discounts?
How to Get Unpublished Flight Deals and Discounts?FlyFairTravels
 
char Dham yatra, Uttarakhand tourism.pptx
char Dham yatra, Uttarakhand tourism.pptxchar Dham yatra, Uttarakhand tourism.pptx
char Dham yatra, Uttarakhand tourism.pptxpalakdigital7
 
08448380779 Call Girls In Chirag Enclave Women Seeking Men
08448380779 Call Girls In Chirag Enclave Women Seeking Men08448380779 Call Girls In Chirag Enclave Women Seeking Men
08448380779 Call Girls In Chirag Enclave Women Seeking MenDelhi Call girls
 
Top 10 Traditional Indian Handicrafts.pptx
Top 10 Traditional Indian Handicrafts.pptxTop 10 Traditional Indian Handicrafts.pptx
Top 10 Traditional Indian Handicrafts.pptxdishha99
 
Visa Consultant in Lahore || 📞03094429236
Visa Consultant in Lahore || 📞03094429236Visa Consultant in Lahore || 📞03094429236
Visa Consultant in Lahore || 📞03094429236Sherazi Tours
 
BERMUDA Triangle the mystery of life.pptx
BERMUDA Triangle the mystery of life.pptxBERMUDA Triangle the mystery of life.pptx
BERMUDA Triangle the mystery of life.pptxseri bangash
 
best weekend places near delhi where you should visit.pdf
best weekend places near delhi where you should visit.pdfbest weekend places near delhi where you should visit.pdf
best weekend places near delhi where you should visit.pdftour guide
 
08448380779 Call Girls In Chhattarpur Women Seeking Men
08448380779 Call Girls In Chhattarpur Women Seeking Men08448380779 Call Girls In Chhattarpur Women Seeking Men
08448380779 Call Girls In Chhattarpur Women Seeking MenDelhi Call girls
 

Kürzlich hochgeladen (20)

🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
 
Genesis 1:6 || Meditate the Scripture daily verse by verse
Genesis 1:6  ||  Meditate the Scripture daily verse by verseGenesis 1:6  ||  Meditate the Scripture daily verse by verse
Genesis 1:6 || Meditate the Scripture daily verse by verse
 
DARK TRAVEL AGENCY presented by Khuda Bux
DARK TRAVEL AGENCY presented by Khuda BuxDARK TRAVEL AGENCY presented by Khuda Bux
DARK TRAVEL AGENCY presented by Khuda Bux
 
Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779
Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779
Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779
 
Rohini Sector 18 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 18 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 18 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 18 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
visa consultant | 📞📞 03094429236 || Best Study Visa Consultant
visa consultant | 📞📞 03094429236 || Best Study Visa Consultantvisa consultant | 📞📞 03094429236 || Best Study Visa Consultant
visa consultant | 📞📞 03094429236 || Best Study Visa Consultant
 
Hire 💕 8617697112 Champawat Call Girls Service Call Girls Agency
Hire 💕 8617697112 Champawat Call Girls Service Call Girls AgencyHire 💕 8617697112 Champawat Call Girls Service Call Girls Agency
Hire 💕 8617697112 Champawat Call Girls Service Call Girls Agency
 
Call Girls In Munirka 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In Munirka 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICECall Girls In Munirka 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In Munirka 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
 
Call Girls Service !! New Friends Colony!! @9999965857 Delhi 🫦 No Advance VV...
Call Girls Service !! New Friends Colony!! @9999965857 Delhi 🫦 No Advance  VV...Call Girls Service !! New Friends Colony!! @9999965857 Delhi 🫦 No Advance  VV...
Call Girls Service !! New Friends Colony!! @9999965857 Delhi 🫦 No Advance VV...
 
9 Days Kenya Ultimate Safari Odyssey with Kibera Holiday Safaris
9 Days Kenya Ultimate Safari Odyssey with Kibera Holiday Safaris9 Days Kenya Ultimate Safari Odyssey with Kibera Holiday Safaris
9 Days Kenya Ultimate Safari Odyssey with Kibera Holiday Safaris
 
💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
 
How to Get Unpublished Flight Deals and Discounts?
How to Get Unpublished Flight Deals and Discounts?How to Get Unpublished Flight Deals and Discounts?
How to Get Unpublished Flight Deals and Discounts?
 
char Dham yatra, Uttarakhand tourism.pptx
char Dham yatra, Uttarakhand tourism.pptxchar Dham yatra, Uttarakhand tourism.pptx
char Dham yatra, Uttarakhand tourism.pptx
 
08448380779 Call Girls In Chirag Enclave Women Seeking Men
08448380779 Call Girls In Chirag Enclave Women Seeking Men08448380779 Call Girls In Chirag Enclave Women Seeking Men
08448380779 Call Girls In Chirag Enclave Women Seeking Men
 
Top 10 Traditional Indian Handicrafts.pptx
Top 10 Traditional Indian Handicrafts.pptxTop 10 Traditional Indian Handicrafts.pptx
Top 10 Traditional Indian Handicrafts.pptx
 
Visa Consultant in Lahore || 📞03094429236
Visa Consultant in Lahore || 📞03094429236Visa Consultant in Lahore || 📞03094429236
Visa Consultant in Lahore || 📞03094429236
 
BERMUDA Triangle the mystery of life.pptx
BERMUDA Triangle the mystery of life.pptxBERMUDA Triangle the mystery of life.pptx
BERMUDA Triangle the mystery of life.pptx
 
best weekend places near delhi where you should visit.pdf
best weekend places near delhi where you should visit.pdfbest weekend places near delhi where you should visit.pdf
best weekend places near delhi where you should visit.pdf
 
08448380779 Call Girls In Chhattarpur Women Seeking Men
08448380779 Call Girls In Chhattarpur Women Seeking Men08448380779 Call Girls In Chhattarpur Women Seeking Men
08448380779 Call Girls In Chhattarpur Women Seeking Men
 
Call Girls Service !! Indirapuram!! @9999965857 Delhi 🫦 No Advance VVVIP 🍎 S...
Call Girls Service !! Indirapuram!! @9999965857 Delhi 🫦 No Advance  VVVIP 🍎 S...Call Girls Service !! Indirapuram!! @9999965857 Delhi 🫦 No Advance  VVVIP 🍎 S...
Call Girls Service !! Indirapuram!! @9999965857 Delhi 🫦 No Advance VVVIP 🍎 S...
 

Empfohlen

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Soft Cardinality: A Parameterized Similarity Function for Text Comparison

  • 1. Soft Cardinality: A Parameterized Similarity Function for Text Comparison Sergio Jimenez Claudia Becerra Alexander Gelbukh Center for Computing Research, Instituto Politécnico Nacional (National Polytechnic (Technical) Institute), Mexico
  • 2. Outline • Cardinality-based similarity functions • What is Soft Cardinality? • Parameterized resemblance coefficient • Building text similarity functions • Optimizing parameters • Results in STS SemEval-2012 • Conclusions
  • 3. Cardinality-based similarity functions Jaccard (1905) BA BA BASIM ),( Dice (1945) BA BA BASIM 5.05.0 ),( Only two thing are needed: 1. Cardinality function 2. Resemblance coefficient "" "" referent iescommonalit Soft cardinality Parameterized resemblance coefficient
  • 4. Soft Cardinality A= , , B= , , |A|=3 |B|=3 Classical cardinality crisp count Soft cardinality soft count |A|’=2.9 |B|’=1.3
  • 5. How to compute soft cardinality? naaaA ,,, 21  n i n j ji aasim A 1 1 ' , 1 1),(; aasima ),(),(;, absimbasimba ]1,0[),(;, basimba
  • 8. An extended soft cardinality model n i n j ji aasim A 1 1 ' , 1 iaw Weights for the elements (words) e.g. tf-idf iaw p Controls the “softness” of the soft cardinality 0p AAp ' p iawA '
  • 9. 8A
  • 10.
  • 11. Parameterized resemblance coefficient BA BA BASIM 5.05.0 ),( The referent is a balance between the “sizes” of A and B Tversky (1977) “the son resembles the father” not “the father resembles the son” “an ellipse is like a circle” not “a circle is like an ellipse” “North Korea is like Red China” not “Red China is like North Korea” “the son resembles the father” not “the father resembles the son” “an ellipse is like a circle” not “a circle is like an ellipse” “North Korea is like Red China” not “Red China is like North Korea” A B In general “the variant is more similar to the prototype” A BA BASIM ),( BA BA BASIM ,min ),( Overlap coefficient
  • 13. Parameterized resemblance coefficient ),max()1(),min( ),( BABA biasBA BASIM |A| |B| bias 0.0 0.2 -0.2 3 5 2 0.5 0.550 0.450 6 10 4 0.5 0.525 0.475 9 15 6 0.5 0.517 0.483 BA #1 #2 #3
  • 14. Building text similarity functions ),max()1(),min( ),( '''' ' BABA biasBA BASIM Soft cardinality n i n j p ji a aasim wA i 1 1 ' , 1 ),max()1(),min( ),( iisimiisim simii ji baba biasba basim ),( BASIM ),( ji basim Compares two texts as sets of words Compares two words as sets of q-grams
  • 15. Optimal parametes found by hill climbing DATA SET* q-grams parameters Pearson bias p biassim r MSRpar.training [4] 0.62 1.14 0.77 -0.04 -0.38 0.6598 MSR.par.test [4] 0.60 1.02 0.90 -0.02 -0.40 0.6335 MSRvid.training [1:4] 0.42 -0.80 2.28 0.18 0.08 0.8323 MSRvid.test [1:4] 0.32 -0.80 1.88 1.08 0.08 0.8579 SMTeuro.training [2:4] 0.74 -0.06 0.91 1.88 2.90 0.6193 SMTeuro.test [2:4] 0.84 -0.16 0.71 1.78 3.00 0.5178 OnWN.test [2:5] 0.88 -0.62 1.36 -0.02 -0.70 0.7202 SMTnews.test [1:4] 0.88 0.88 1.57 0.80 3.21 0.5344 sim RankMean= 0.6788)( ia aidfw i * Lemmatized with Porter stemmer
  • 16. Used Resources Run baer/task6-UKP-run2 jan_snajder/task6- takelab-simple sgjimenezv/task6- SOFT-CARDINALITY Used resoruces KB similarity Lemmatizer String Similarity Dictionaries Distributional thesaurus Monolingual corpora Multilingual corpora Wikipedia WordNet Distributional Similarity POS tagger SMT Textual Entailment Other KB similarity Lemmatizer Dictionaries Distributional thesaurus Monolingual corpora Stop words Wikipedia WordNet Distributional Similarity Lexical Substitution Machine Learning POS tagger Other KB similarity Lemmatizer String Similarity Mean (r) 0.6773 0.6753 0.6708 RankMean 1st 2nd 3rd Difference 0.969% 0.671% 0%
  • 17. Results for other measures Cosine tf-idf + lemmatizer RankMean=0.6326 (10th) SoftTFIDF+ lemmatizer RankMean=0.6415 (7th) Soft Cardinality+lemmatizer+ Paramet.Res.Coeff.+Hill climbing RankMean=0.6788 Text A TextB Text A TextB Text A Text B TextBTextA
  • 18. Conclusions 1. The soft cardinality approach proved to be a an effective and low-cost text similarity function, even in Semantic Textual Similarity scenarios. 2. The set of parameters of the proposed function were maningfull and easy to find their optimal values when training data is available.