One recent work (Yao, 2015) manually assigns a single numerical number to encode and derive phonetic similarity.
this single-encoding approach is inaccurate since the phonetic distances between Pinyins are not captured well in a one dimensional space.