SlideShare a Scribd company logo
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.

More Related Content

Recently uploaded

Best leisure recommended travel tips of 2024
Best leisure recommended travel tips of 2024Best leisure recommended travel tips of 2024
Best leisure recommended travel tips of 2024
kdadfarin363
 
What Budget-Friendly Attractions Does San Antonio Offer For Families
What Budget-Friendly Attractions Does San Antonio Offer For FamiliesWhat Budget-Friendly Attractions Does San Antonio Offer For Families
What Budget-Friendly Attractions Does San Antonio Offer For Families
Walking Tours of San Antonio
 
Inca Trail to Machu Picchu An Unforgettable Adventure
Inca Trail to Machu Picchu An Unforgettable AdventureInca Trail to Machu Picchu An Unforgettable Adventure
Inca Trail to Machu Picchu An Unforgettable Adventure
Xtreme Tourbulencia
 
09 Days Tour To Skardu(By Road): Skardu Ambassador Tours
09 Days Tour To Skardu(By Road): Skardu Ambassador Tours09 Days Tour To Skardu(By Road): Skardu Ambassador Tours
09 Days Tour To Skardu(By Road): Skardu Ambassador Tours
Skardu Ambassador Tours
 
一比一原版(UST毕业证)圣托马斯大学毕业证如何办理
一比一原版(UST毕业证)圣托马斯大学毕业证如何办理一比一原版(UST毕业证)圣托马斯大学毕业证如何办理
一比一原版(UST毕业证)圣托马斯大学毕业证如何办理
yfuwd
 
Frontier Airlines at Boston Logan International Airport (BOS) Comprehensive G...
Frontier Airlines at Boston Logan International Airport (BOS) Comprehensive G...Frontier Airlines at Boston Logan International Airport (BOS) Comprehensive G...
Frontier Airlines at Boston Logan International Airport (BOS) Comprehensive G...
AirportCityTerminals Terminals
 
How Safe Is Manta Ray Night Snorkeling In Kona
How Safe Is Manta Ray Night Snorkeling In KonaHow Safe Is Manta Ray Night Snorkeling In Kona
How Safe Is Manta Ray Night Snorkeling In Kona
Kona Ocean Adventures
 
定制(cardiff学位证书)英国卡迪夫大学毕业证本科学历原版一模一样
定制(cardiff学位证书)英国卡迪夫大学毕业证本科学历原版一模一样定制(cardiff学位证书)英国卡迪夫大学毕业证本科学历原版一模一样
定制(cardiff学位证书)英国卡迪夫大学毕业证本科学历原版一模一样
eovoam
 
What Is The United Airlines Change Name Policy?
What Is The United Airlines Change Name Policy?What Is The United Airlines Change Name Policy?
What Is The United Airlines Change Name Policy?
flyingrules001namech
 
ghmc zones and circle and why they are needed
ghmc zones and circle and why they are neededghmc zones and circle and why they are needed
ghmc zones and circle and why they are needed
narinav14
 
Colombia Historical Tour - savvytravelers
Colombia Historical Tour - savvytravelersColombia Historical Tour - savvytravelers
Colombia Historical Tour - savvytravelers
Savvy Travelers
 
Southwest Airlines Low Fare Calendar: The Ultimate Guide
Southwest Airlines Low Fare Calendar: The Ultimate GuideSouthwest Airlines Low Fare Calendar: The Ultimate Guide
Southwest Airlines Low Fare Calendar: The Ultimate Guide
i2aanshul
 
一比一原版(毕业证书)马来西亚双威大学毕业证如何办理
一比一原版(毕业证书)马来西亚双威大学毕业证如何办理一比一原版(毕业证书)马来西亚双威大学毕业证如何办理
一比一原版(毕业证书)马来西亚双威大学毕业证如何办理
ucowe
 
Bahrain Visa For Indians, Complete Process
Bahrain Visa For Indians, Complete ProcessBahrain Visa For Indians, Complete Process
Bahrain Visa For Indians, Complete Process
toolzbuycomaccess
 
Slovenia Visa for Indians | How to apply
Slovenia Visa for Indians | How to applySlovenia Visa for Indians | How to apply
Slovenia Visa for Indians | How to apply
Triple I Business
 
What Should You Expect On Austin's History Tour
What Should You Expect On Austin's History TourWhat Should You Expect On Austin's History Tour
What Should You Expect On Austin's History Tour
Walking Tours of Austin
 
American Airlines Name Change Policy Highlights.pptx
American Airlines Name Change Policy Highlights.pptxAmerican Airlines Name Change Policy Highlights.pptx
American Airlines Name Change Policy Highlights.pptx
edqour001namechange
 

Recently uploaded (17)

Best leisure recommended travel tips of 2024
Best leisure recommended travel tips of 2024Best leisure recommended travel tips of 2024
Best leisure recommended travel tips of 2024
 
What Budget-Friendly Attractions Does San Antonio Offer For Families
What Budget-Friendly Attractions Does San Antonio Offer For FamiliesWhat Budget-Friendly Attractions Does San Antonio Offer For Families
What Budget-Friendly Attractions Does San Antonio Offer For Families
 
Inca Trail to Machu Picchu An Unforgettable Adventure
Inca Trail to Machu Picchu An Unforgettable AdventureInca Trail to Machu Picchu An Unforgettable Adventure
Inca Trail to Machu Picchu An Unforgettable Adventure
 
09 Days Tour To Skardu(By Road): Skardu Ambassador Tours
09 Days Tour To Skardu(By Road): Skardu Ambassador Tours09 Days Tour To Skardu(By Road): Skardu Ambassador Tours
09 Days Tour To Skardu(By Road): Skardu Ambassador Tours
 
一比一原版(UST毕业证)圣托马斯大学毕业证如何办理
一比一原版(UST毕业证)圣托马斯大学毕业证如何办理一比一原版(UST毕业证)圣托马斯大学毕业证如何办理
一比一原版(UST毕业证)圣托马斯大学毕业证如何办理
 
Frontier Airlines at Boston Logan International Airport (BOS) Comprehensive G...
Frontier Airlines at Boston Logan International Airport (BOS) Comprehensive G...Frontier Airlines at Boston Logan International Airport (BOS) Comprehensive G...
Frontier Airlines at Boston Logan International Airport (BOS) Comprehensive G...
 
How Safe Is Manta Ray Night Snorkeling In Kona
How Safe Is Manta Ray Night Snorkeling In KonaHow Safe Is Manta Ray Night Snorkeling In Kona
How Safe Is Manta Ray Night Snorkeling In Kona
 
定制(cardiff学位证书)英国卡迪夫大学毕业证本科学历原版一模一样
定制(cardiff学位证书)英国卡迪夫大学毕业证本科学历原版一模一样定制(cardiff学位证书)英国卡迪夫大学毕业证本科学历原版一模一样
定制(cardiff学位证书)英国卡迪夫大学毕业证本科学历原版一模一样
 
What Is The United Airlines Change Name Policy?
What Is The United Airlines Change Name Policy?What Is The United Airlines Change Name Policy?
What Is The United Airlines Change Name Policy?
 
ghmc zones and circle and why they are needed
ghmc zones and circle and why they are neededghmc zones and circle and why they are needed
ghmc zones and circle and why they are needed
 
Colombia Historical Tour - savvytravelers
Colombia Historical Tour - savvytravelersColombia Historical Tour - savvytravelers
Colombia Historical Tour - savvytravelers
 
Southwest Airlines Low Fare Calendar: The Ultimate Guide
Southwest Airlines Low Fare Calendar: The Ultimate GuideSouthwest Airlines Low Fare Calendar: The Ultimate Guide
Southwest Airlines Low Fare Calendar: The Ultimate Guide
 
一比一原版(毕业证书)马来西亚双威大学毕业证如何办理
一比一原版(毕业证书)马来西亚双威大学毕业证如何办理一比一原版(毕业证书)马来西亚双威大学毕业证如何办理
一比一原版(毕业证书)马来西亚双威大学毕业证如何办理
 
Bahrain Visa For Indians, Complete Process
Bahrain Visa For Indians, Complete ProcessBahrain Visa For Indians, Complete Process
Bahrain Visa For Indians, Complete Process
 
Slovenia Visa for Indians | How to apply
Slovenia Visa for Indians | How to applySlovenia Visa for Indians | How to apply
Slovenia Visa for Indians | How to apply
 
What Should You Expect On Austin's History Tour
What Should You Expect On Austin's History TourWhat Should You Expect On Austin's History Tour
What Should You Expect On Austin's History Tour
 
American Airlines Name Change Policy Highlights.pptx
American Airlines Name Change Policy Highlights.pptxAmerican Airlines Name Change Policy Highlights.pptx
American Airlines Name Change Policy Highlights.pptx
 

Featured

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
Marius 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 ChatGPT
Expeed 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 Engineerings
Pixeldarts
 
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
ThinkNow
 
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
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
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
Neil 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 2024
Albert 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 Insights
Kurio // 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 2024
Search 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 summary
SpeakerHub
 
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 Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit 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 management
MindGenius
 
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
 

Featured (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.