apoc.text.sorensenDiceSimilarity

Function APOC Core

apoc.text.sorensenDiceSimilarityWithLanguage(text1, text2, languageTag) - compare the given strings with the Sørensen–Dice coefficient formula, with the provided IETF language tag

Signature

apoc.text.sorensenDiceSimilarity(text1 :: STRING?, text2 :: STRING?, languageTag = en :: STRING?) :: (FLOAT?)

Input parameters

Name Type Default

text1

STRING?

null

text2

STRING?

null

languageTag

STRING?

en

Usage Examples

RETURN apoc.text.sorensenDiceSimilarity("belly", "jolly") AS output;
Table 1. Results
output

0.5