代码之家  ›  专栏  ›  技术社区  ›  Richard Haven

双Metaphone测试套件?

  •  2
  • Richard Haven  · 技术社区  · 16 年前

    1 回复  |  直到 14 年前
        1
  •  4
  •   thomasrutter    16 年前

    你可以找到别人的双变音实现,在同样长的单词列表上运行它,并将结果与你自己的进行比较。

    对于长长的单词列表,我喜欢infochimps。他们有很多单词列表,比如 this one of 350,000 english words this one of place names ,以及更多。

    这是 implementations you can compare your results against 这是 online example ,只是它一次只测试一个单词——我想你必须下载并运行一个脚本来测试一大堆单词。

    对于每个单词,将返回两个代码;您可能想测试返回的两个代码是否与另一个实现返回的代码匹配。你可能知道 the reference implementation is here full source code here ,但无论如何都要包含链接,以造福他人。