Similarity Functions
Last updated
Was this helpful?
Last updated
Was this helpful?
Available functions:
(text1, text2)
: Calculate the edit distance score between two texts.
(reference, candidate)
: Calculate the BLEU score between a reference sentence and a candidate sentence.
(text1, text2)
: Calculate Jaccard similarity between two texts.
Calculate the edit distance score between two texts.
Calculate the BLEU score between a reference sentence and a candidate sentence.
Jaccard similarity is a measure of similarity between two sets. In the context of text comparison, it calculates the similarity between the sets of words in two texts.