Counts the number of positions at which two embedding vectors differ, making it suitable for comparing binary or categorical data.
output
(str): The generated text to be evaluated.expectedOutput
(str): The reference or ground truth text.Result
(int): An integer distance score, from 0 to the dimension of the vectors.0
: The vectors are identical.The result is a discrete integer, not a continuous value.
i
where the elements differ.