文语站

位置:首页 > 造句 > 

metaphone造句

造句2.55W

If a metaphone match has been found, just the first matched word with the appropriate metaphone is selected for printing.

metaphone造句

Use the program in Listing 10 to create your own metaphone databases.

The loadMetaPhones subroutine is straightforward code that creates two hashes of metaphone keys and values.

The primary method for suggesting alternatives to typographical and spelling errors will be metaphone matching.

A frequency count is then created for each of these words, along with their associated metaphone keys.

The average metaphone code is, therefore, a much more accurate representation of a given word, and provides an ideal basis for building a suggestion library.

After the local variable declaration, the subroutine will make a pass through every query word specified searching for a metaphone match in the name or jobresponsibilities hashes.

In our example, a 1-frequency of metaphone match in the name field is considered more desirable than a 50-frequency match in the jobresponsibilities field.

Insert a call to the Aspell or Ispell API for another avenue of search query suggestion, or replace the metaphone matching with the best modern soundex for your application.

标签:造句 metaphone