dmort27 / panphon

Python package and data files for manipulating phonological segments (phones, phonemes) in terms of universal phonological features.
MIT License
218 stars 45 forks source link

Is panphon.distance for words only? #43

Closed wannaphong closed 1 year ago

wannaphong commented 1 year ago

Hello! I want to use panphon to find the distance of ipa string (the sentence that convert to ipa). Is panphon.distance for words only?

dmort27 commented 1 year ago

PanPhon distance is for words only. You can calculate distances between sentences in various ways (concatenating the words (treating them as a single world, for example).

wannaphong commented 1 year ago

PanPhon distance is for words only. You can calculate distances between sentences in various ways (concatenating the words (treating them as a single world, for example).

Thank you! I will use . for concatenating the word by assusing all words as a syllable.