apoc.text.sorensenDiceSimilarity

Function

apoc.text.sorensenDiceSimilarityWithLanguage(text1 String, text2 String, languageTag String) - compares the two given strings using 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