metaphone

Unexpected results from Metaphone algorithm

廉价感情. 提交于 2019-12-24 12:17:48
问题 I am using phonetic matching for different words in Java. i used Soundex but its too crude. i switched to Metaphone and realized it was better. However, when i rigorously tested it. i found weird behaviour. i was to ask whether thats the way metaphone works or am i using it in wrong way. In following example its works fine:- Metaphone meta = new Metaphone(); if (meta.isMetaphoneEqual("cricket","criket")) System.out.prinlnt("Match 1"); if (meta.isMetaphoneEqual("cricket","criketgame")) System

Mysql Equivalent of php metaphone and soundex

血红的双手。 提交于 2019-12-23 06:09:12
问题 I am working on an app where user's current playing song title is fetched and we look in the mysql database to see who else is playing a similar song.since the same song might be with many varied titles on everyone's phone , we need a way to effectively find as close results as possible. The process that we are using right now gets all the songs from the table then do a foreach and compare each entry in the resultset with user's song. Here is a part of the function we have used: $all_results

Sphinx with metaphone and wildcard search

怎甘沉沦 提交于 2019-12-22 11:35:47
问题 we are an anatomy platform and use sphinx for our search. We want to make our search more fuzzier and started to use metaphone to correct spelling mistakes. It finds for example phalanges even though the search word is falanges . That's good but we want more. We want that the user could type in falange or even falang and we still find phalanges . Any ideas how to accomplish this? If you are interested you can checkout our sphinx config file here. Thanks! 回答1: Well you can enable both

Replace words using Soundex, python

心已入冬 提交于 2019-12-07 16:32:56
问题 i have a list of sentences and basically my aim is to replace all diff occurrences of prepositions in the form "opp,nr,off,abv,behnd" with their correct spellings "opposite,near,above,behind" and so on. The soundex code of the words are same so i need to build an expression to iterate over this list word by word and if the soundex is same, replace it with the right spelling. An example - ['Jack was standing nr the tree' , 'they were abv everything he planned' , 'Just stand opp the counter' ,

Sphinx with metaphone and wildcard search

送分小仙女□ 提交于 2019-12-06 12:52:17
we are an anatomy platform and use sphinx for our search. We want to make our search more fuzzier and started to use metaphone to correct spelling mistakes. It finds for example phalanges even though the search word is falanges . That's good but we want more. We want that the user could type in falange or even falang and we still find phalanges . Any ideas how to accomplish this? If you are interested you can checkout our sphinx config file here . Thanks! Well you can enable both metaphone and min_prefix_len on an index at once. It will sort of work. falange* might then just work. (to match

Replace words using Soundex, python

陌路散爱 提交于 2019-12-05 22:33:24
i have a list of sentences and basically my aim is to replace all diff occurrences of prepositions in the form "opp,nr,off,abv,behnd" with their correct spellings "opposite,near,above,behind" and so on. The soundex code of the words are same so i need to build an expression to iterate over this list word by word and if the soundex is same, replace it with the right spelling. An example - ['Jack was standing nr the tree' , 'they were abv everything he planned' , 'Just stand opp the counter' , 'Go twrds the gas station'] so i need to replace words nr,abv ,opp and twrds with their right full

Enabling soundex/metaphone for non-English characters

大兔子大兔子 提交于 2019-11-28 09:09:05
I've been studying soundex, metaphone and other string search techniques the past few days, and in my understanding both algorithms work well in handling non-English words transliterated to English. However the requirement that I have would be for such search to work in the original, untransliterated languages, accomodating alphabets such as German, Norwegian, and even Cyrilic alphabets. Are there any search algorithms capable of handling these alphabets completely? Or am I better off using third party full-text-search libraries such as Lucene? Consequently, the question then becomes 'does

Enabling soundex/metaphone for non-English characters

送分小仙女□ 提交于 2019-11-27 05:49:32
问题 I've been studying soundex, metaphone and other string search techniques the past few days, and in my understanding both algorithms work well in handling non-English words transliterated to English. However the requirement that I have would be for such search to work in the original, untransliterated languages, accomodating alphabets such as German, Norwegian, and even Cyrilic alphabets. Are there any search algorithms capable of handling these alphabets completely? Or am I better off using