apoc.text.sorensenDiceSimilarity

Details

Syntax

apoc.text.sorensenDiceSimilarity(text1, text2 [, languageTag ])

Description

Compares the two given STRING values using the Sørensen–Dice coefficient formula, with the provided IETF language tag.

Arguments

Name

Type

Description

text1

STRING

A string to be compared against text2.

text2

STRING

A string to be compared against text1.

languageTag

STRING

A language tag string specified by IETF BCP 47. The default is: en.

Returns

FLOAT

Usage Examples

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

0.5