是否有python的soundex函数?
作者:互联网
是否有python的soundex函数,如果不是,你会如何制作soundex代码?
Soundex
Code Letters
1 B, F, P, V
2 C, G, J, K, Q, S, X, Z
3 D, T
4 L
5 M, N
6 R
SKIP A, E, H, I, O, U, W, Y, H, W, and Y
例如:
杰克逊= J250
华盛顿= W252
Clement = C455
Ashcraft = A261
吴= W000
解决方法:
你可以用水母
sudo pip install jellyfish
print "Soundex\t\t=", jellyfish.soundex("Ala ma kaca")
>Soundex = A452
#...
>Metaphone = AL M KK
>NYSIIS = AL
>Match rating codex = ALMKC
标签:python,python-2-7,soundex 来源: https://codeday.me/bug/20190823/1694622.html