Spaces:
Sleeping
Sleeping
Renaming repo to `phone_errors`
Browse filesFiles changed (3)
- README.md+4-4
- app.py+1-1
- phone_distance.py+4-4
123456789105 unmodified lines1617181920212223242526272829---title: phone_distancetags:- evaluate- metricdescription: >-Measures of distance in terms of articulatory phonological features can help understand differencesbetween strings in the International Phonetic Alphabet (IPA) in a linguistically motivated way.This is useful when evaluating speech recognition or orthographic to IPA conversion tasks.sdk: gradio5 unmodified lines# Metric Card for Phone Distance## Metric DescriptionMeasures of distance in terms of articulatory phonological features can help understand differences between strings in the International Phonetic Alphabet (IPA) in a linguistically motivated way.This is useful when evaluating speech recognition or orthographic to IPA conversion tasks. These are Levenshtein distances for comparing strings where the smallest unit of measurement is based on phones or articulatory phonological features, rather than Unicode characters.## How to Use```pythonimport evaluatephone_distance = evaluate.load("ginic/phone_distance")phone_distance.compute(predictions=["bob", "ði"], references=["pop", "ðə"])```123456789105 unmodified lines1617181920212223242526272829---title: phone_errorstags:- evaluate- metricdescription: >-Error rates in terms of distance between articulatory phonological features can help understand differencesbetween strings in the International Phonetic Alphabet (IPA) in a linguistically motivated way.This is useful when evaluating speech recognition or orthographic to IPA conversion tasks.sdk: gradio5 unmodified lines# Metric Card for Phone Distance## Metric DescriptionError rates in terms of distance between articulatory phonological features can help understand differences between strings in the International Phonetic Alphabet (IPA) in a linguistically motivated way.This is useful when evaluating speech recognition or orthographic to IPA conversion tasks. These are Levenshtein distances for comparing strings where the smallest unit of measurement is based on phones or articulatory phonological features, rather than Unicode characters.## How to Use```pythonimport evaluatephone_distance = evaluate.load("ginic/phone_errors")phone_distance.compute(predictions=["bob", "ði"], references=["pop", "ðə"])```
1 unmodified line234561 unmodified linefrom evaluate.utils import launch_gradio_widgetmodule = evaluate.load("ginic/phone_distance")launch_gradio_widget(module)1 unmodified line234561 unmodified linefrom evaluate.utils import launch_gradio_widgetmodule = evaluate.load("ginic/phone_errors")launch_gradio_widget(module)
37 unmodified lines38394041424344454624 unmodified lines71727374757677787980818237 unmodified lines"""_DESCRIPTION = """Measures of distance in terms of articulatory phonological features can help understand differencesbetween strings in the International Phonetic Alphabet (IPA) in a linguistically motivated way.This is useful when evaluating speech recognition or orthographic to IPA conversion tasks."""24 unmodified linesExamples:Compare articulatory differences in voicing in "bob" vs. "pop" and different pronunciations of "the":>>> phone_distance = evaluate.load("ginic/phone_distance")>>> phone_distance.compute(predictions=["bob", "ði"], references=["pop", "ðə"]){'phone_error_rates': [0.6666666666666666, 0.5], 'mean_phone_error_rate': 0.5833333333333333, 'phone_feature_error_rates': [0.08333333333333333, 0.125], 'mean_phone_feature_error_rates': 0.10416666666666666, 'feature_error_rates': [0.027777777777777776, 0.0625], 'mean_feature_error_rates': 0.04513888888888889}Normalize PFER by the length of string with largest number of phones:>>> phone_distance = evaluate.load("ginic/phone_distance")>>> phone_distance.compute(predictions=["bob", "ði"], references=["pop", "ðə"], is_normalize_pfer=True)"""37 unmodified lines38394041424344454624 unmodified lines71727374757677787980818237 unmodified lines"""_DESCRIPTION = """Error rates in terms of distance between articulatory phonological features can help understand differencesbetween strings in the International Phonetic Alphabet (IPA) in a linguistically motivated way.This is useful when evaluating speech recognition or orthographic to IPA conversion tasks."""24 unmodified linesExamples:Compare articulatory differences in voicing in "bob" vs. "pop" and different pronunciations of "the":>>> phone_distance = evaluate.load("ginic/phone_errors")>>> phone_distance.compute(predictions=["bob", "ði"], references=["pop", "ðə"]){'phone_error_rates': [0.6666666666666666, 0.5], 'mean_phone_error_rate': 0.5833333333333333, 'phone_feature_error_rates': [0.08333333333333333, 0.125], 'mean_phone_feature_error_rates': 0.10416666666666666, 'feature_error_rates': [0.027777777777777776, 0.0625], 'mean_feature_error_rates': 0.04513888888888889}Normalize PFER by the length of string with largest number of phones:>>> phone_distance = evaluate.load("ginic/phone_errors")>>> phone_distance.compute(predictions=["bob", "ði"], references=["pop", "ðə"], is_normalize_pfer=True)"""
README.md+4-4
app.py+1-1
phone_distance.py+4-4