如何在 Elasticsearch "Phonetic Token filter" 中决定为哪种语言使用哪个编码器?
How to decide which Encoder to use for which language in Elasticsearch "Phonetic Token filter"?
我在 Elasticsearch 中使用 Metaphone 和 soundex 编码器 "Phonetic Token Filter"。
Metaphone 适合英文单词。
Soundex 适用于 英语 以及 印地语 也许很多还有其他语言。
我想知道这些编码器中的哪一个最适合印地语,如果可能的话,其他印度语言?
- Soundex
- Metaphone
- double_metaphone
- refined_soundex
- caverphone1 - 英语(新西兰本地化)
- caverphone2 - 英语(新西兰本地化)
- 科隆 - 德语
- nysiis - 即兴创作 Soundex
- koelnerphonetik - 德语
- haasephonetik - 德语
- beider_morse - 英语和多种欧洲语言
- daitch_mokotoff - 斯拉夫和意第绪语姓氏
因为 Elasticsearch website 中没有列出我们应该为哪种语言选择哪种编码器。
还请告诉我您已经使用了哪些编码器以及使用了哪种语言。
语音编码器是一种根据发音对单词进行索引的算法。
维基百科上有相关解释
- Metaphone, Double Metaphone, and Metaphone 3 : suitable for use with most English words, not just names. Metaphone algorithms are
the basis for many popular spell checkers. The Double Metaphone
phonetic encoding algorithm is the second generation of this
algorithm.
- Soundex: which was developed to encode surnames for use in censuses. Soundex codes are four-character strings composed of a
single letter followed by three numbers.
- Daitch–Mokotoff Soundex: which is a refinement of Soundex designed to better match surnames of Slavic and Germanic origin.
Daitch–Mokotoff Soundex codes are strings composed of six numeric
digits.
- Cologne phonetics :This is similar to Soundex, but more suitable for German words.
- New York State Identification and Intelligence System (NYSIIS): which maps similar phonemes to the same letter. The result
is a string that can be pronounced by the reader without decoding.
- Match Rating Approach developed by Western Airlines in 1977: this algorithm has an encoding and range comparison technique.
- Caverphone: created to assist in data matching between late 19th century and early 20th century electoral rolls, optimized for
accents present in parts of New Zealand
参考资料:
上述算法及其子类型的详细信息可在下面的维基百科页面中找到
1. https://en.wikipedia.org/wiki/Phonetic_algorithm
以上SoundEx最适合印度语言
您可以在下面查看相同的资源
1.
2.https://thottingal.in/blog/2009/07/26/indicsoundex/
我在 Elasticsearch 中使用 Metaphone 和 soundex 编码器 "Phonetic Token Filter"。
Metaphone 适合英文单词。
Soundex 适用于 英语 以及 印地语 也许很多还有其他语言。
我想知道这些编码器中的哪一个最适合印地语,如果可能的话,其他印度语言?
- Soundex
- Metaphone
- double_metaphone
- refined_soundex
- caverphone1 - 英语(新西兰本地化)
- caverphone2 - 英语(新西兰本地化)
- 科隆 - 德语
- nysiis - 即兴创作 Soundex
- koelnerphonetik - 德语
- haasephonetik - 德语
- beider_morse - 英语和多种欧洲语言
- daitch_mokotoff - 斯拉夫和意第绪语姓氏
因为 Elasticsearch website 中没有列出我们应该为哪种语言选择哪种编码器。
还请告诉我您已经使用了哪些编码器以及使用了哪种语言。
语音编码器是一种根据发音对单词进行索引的算法。
维基百科上有相关解释
- Metaphone, Double Metaphone, and Metaphone 3 : suitable for use with most English words, not just names. Metaphone algorithms are the basis for many popular spell checkers. The Double Metaphone phonetic encoding algorithm is the second generation of this algorithm.
- Soundex: which was developed to encode surnames for use in censuses. Soundex codes are four-character strings composed of a single letter followed by three numbers.
- Daitch–Mokotoff Soundex: which is a refinement of Soundex designed to better match surnames of Slavic and Germanic origin. Daitch–Mokotoff Soundex codes are strings composed of six numeric digits.
- Cologne phonetics :This is similar to Soundex, but more suitable for German words.
- New York State Identification and Intelligence System (NYSIIS): which maps similar phonemes to the same letter. The result is a string that can be pronounced by the reader without decoding.
- Match Rating Approach developed by Western Airlines in 1977: this algorithm has an encoding and range comparison technique.
- Caverphone: created to assist in data matching between late 19th century and early 20th century electoral rolls, optimized for accents present in parts of New Zealand
参考资料: 上述算法及其子类型的详细信息可在下面的维基百科页面中找到 1. https://en.wikipedia.org/wiki/Phonetic_algorithm
以上SoundEx最适合印度语言
您可以在下面查看相同的资源
1.