The technology realization of homophonic idiom search

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

There is a sentence called "Fearless, afraid of the people of Sichuan to speak Mandarin", as a southerner, learning Mandarin is the most headache is flat tongue and tongue, whip and nasal, two and three, before nasal and nasal all confused, especially in the process of learning idioms, a single "real" "true" word, Sichuan people can give Zen, Zhen, Zeng, Zheng Four kinds of phonetic notation, sometimes listen to other people talk about an idiom, want to use their own articles, but do not know how to write when Hou on the whispered, whether the form code or sound code, can not meet their own requirements.

<%
function Gsxy (str)
Dim s,a,b,newstr
S= "" &lcase (str) & ""
A=array ("ɑ", "Do", "á", "ǎ", "à", "a", "ē", "é", "ě", "è", "ê", "ī", "í", "ǐ", "ì", "ō", "Æ", "ǒ", "driving", "thinking", "ú", "ǔ", "Ù", "Ǖ", "Ǘ", "Ǚ "," Ǜ "," U "," L "," ch "," en "," sh "," ing "," eng ")
B=array ("A", "a", "a", "a", "a", "a", "E", "E", "E", "E", "E", "I", "I", "I", "I", "O", "O", "O", "O", "U", "U", "U", "U", "V", "V", "V" "," V "," V "," N "," C "," Z "," s "," in "," en "
For Ii=0 to UBound (a)-1
S=replace (S,a (ii), B (ii))
Next
Gsxy=replace (S, "", "")
End Function
%>

I am doing "fast code Nets" idiom dictionary also encountered the same problem, at that time, think, can this dictionary to add a support homophonic search function? I have a program that supports Polyphone automatic phonetic notation, and I added a field "XY" to the database. Use the following function to replace the phonetic alphabet of each idiom:

If the user chooses the "homophonic search" option in the search, the request keyword is labeled and then replaced with the database to give the correct result. You can go: http://cy.kdd.cc/test the effect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.