Spaces:
Sleeping
Sleeping
Raise value error if a reference string is empty to match behaviour of WER
Browse files111 unmodified lines112113114115115116117118111 unmodified lines
return phone_edits / len(ref_phones) else: return 0.0 raise ValueError("one or more references are empty strings")
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)phone_distance.py+1-1