Similarity Functions
Available functions:
edit_distance_score
(text1, text2)
: Calculate the edit distance score between two texts.bleu_score
(reference, candidate)
: Calculate the BLEU score between a reference sentence and a candidate sentence.jaccard_similarity_score
(text1, text2)
: Calculate Jaccard similarity between two texts.
Edit distance score
Calculate the edit distance score between two texts.
BLEU Score
Calculate the BLEU score between a reference sentence and a candidate sentence.
Jaccard Similarity Score
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.
Last updated