Cosine Similarity
Convert the text into a word frequency vector and calculate the cosine of the angle between the vectors. Value range [0, 1], 1 means exactly the same.
Jaccard Similarity
Calculates the ratio of the intersection and union of two sets. The value range [0, 1] is suitable for comparing the overlap of word sets.
Edit distance (Levenshtein Distance)
The minimum number of operations (insertion, deletion, replacement) required to convert one string to another. The smaller the value, the more similar the values are.
Longest Common Subsequence (LCS)
Find the longest common subsequence length in two sequences, reflecting structural similarity.