python 2/3支持koelner拼音的实现。
kph的Python项目详细描述
python 2/3准备好了kólner phonetik(http://de.wikipedia.org/wiki/K%C3%B6lner_Phonetik)算法的实现。
用法
>>> import kph >>> kph.encode("Horst Meier") '078267' >>> kph.encode("Horst Mayer") '078267' >>> kph.encode("Horst Meier") == kph.encode("Horst Mayer") True >>> kph.encode("Detlef Krumm") == kph.encode("Detlef Krum") == \ ... kph.encode("Detlef Krunn") == kph.encode("Detlef Krun") True
许可证
kph - Python module implementing the ‘Koelner Phonetik’ algorithm. Copyright (C) 2011 Robert Schindler
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
版权
版权所有2011 Robert Schindler<;robert-sch@gmx.net>;。 python 3兼容性由michael herrmann<;[first name]在[last name].io>;添加。