By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,205 Members | 1,027 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,205 IT Pros & Developers. It's quick & easy.

python "sounds-like" module

P: n/a
Hi,
Thanks for all the help from the previous problem. Turns out I didnt
have to use wxSizers, just change the size of my wxWidgets everytime a
EVT_SIZE is called.
Anyway, Im trying to find a python module (im not sure if it exists)
that takes two words and compares if they sound the same. So 'right' and
'write' sounds the same or 'u' and 'you' . Also I know this takes into
account the use of language and accent but is there any out there before
I start making my own?
Thanks
Astan
Dec 13 '07 #1
Share this Question
Share on Google+
8 Replies


P: n/a
On Dec 12, 6:39 pm, Astan Chee <st...@al.com.auwrote:
Hi,
Thanks for all the help from the previous problem. Turns out I didnt
have to use wxSizers, just change the size of my wxWidgets everytime a
EVT_SIZE is called.
Anyway, Im trying to find a python module (im not sure if it exists)
that takes two words and compares if they sound the same. So 'right' and
'write' sounds the same or 'u' and 'you' . Also I know this takes into
account the use of language and accent but is there any out there before
I start making my own?
Thanks
Astan
I don't think this exists. It would require some kind of "fuzzy logic"
to do, I think. You'll probably want to look into speech recognition
as it sounds the closest to what you want/need.

Here a couple links I found with Google:

http://aspn.activestate.com/ASPN/Coo...n/Recipe/93025
http://speechwiki.org/
http://www.synapseadaptive.com/joel/natlink_m.htm

Otherwise, I think you'd need to write some kind of hash table with
all the variations for each word, then you'd apply some artificial
intelligence or that fuzzy logic I mentioned previously to get what
you want.

And no, I've never done this sort of thing. This is just me rambling
on...

Mike
Dec 13 '07 #2

P: n/a
On Dec 12, 6:39 pm, Astan Chee <st...@al.com.auwrote:
Hi,
Thanks for all the help from the previous problem. Turns out I didnt
have to use wxSizers, just change the size of my wxWidgets everytime a
EVT_SIZE is called.
Anyway, Im trying to find a python module (im not sure if it exists)
that takes two words and compares if they sound the same. So 'right' and
'write' sounds the same or 'u' and 'you' . Also I know this takes into
account the use of language and accent but is there any out there before
I start making my own?
Thanks
Astan
Oh, and sizers are a good thing in wxPython as they keep the GUI
consistent cross-platform and cross-resolution. You just need to call
Layout(), Fit() or maybe GetBestSize() (or a combination thereof) when
changing the size of the window through deleting or adding widgets
dynamically.

Mike
Dec 13 '07 #3

P: n/a
Astan Chee wrote:
Anyway, Im trying to find a python module (im not sure if it exists)
that takes two words and compares if they sound the same. So 'right' and
'write' sounds the same or 'u' and 'you' . Also I know this takes into
account the use of language and accent but is there any out there before
I start making my own?
I don't know of any Python modules, but as far as algorithms go, maybe
you get lucky reading up on "soundex" or "metaphone".

regards
/W
Dec 13 '07 #4

P: n/a
On Dec 13, 11:39 am, Astan Chee <st...@al.com.auwrote:
Hi,
Thanks for all the help from the previous problem. Turns out I didnt
have to use wxSizers, just change the size of my wxWidgets everytime a
EVT_SIZE is called.
Anyway, Im trying to find a python module (im not sure if it exists)
that takes two words and compares if they sound the same. So 'right' and
'write' sounds the same or 'u' and 'you' . Also I know this takes into
account the use of language and accent but is there any out there before
I start making my own?
Thanks
Astan
Google for febrl, a Python package for record matching -- it contains
implementations of several "fuzzy matching" methods, including
phonetic ones. Look at the academic papers that this project has
produced; one at least compares the matching methods.

Someone is sure to trot out the hoary old soundex ... believe me, it's
teh suxxor.

Cheers,
John
Dec 13 '07 #5

P: n/a
John Machin wrote:
Someone is sure to trot out the hoary old soundex ... believe me, it's
teh suxxor.

plus febrl has soundex (and modified versions of it) within it. But
thanks again! Looks like this is what I'm looking for.
Thanks alot guys!
Astan
Dec 13 '07 #6

P: n/a
John Machin wrote:
Someone is sure to trot out the hoary old soundex ... believe me, it's
teh suxxor.

Plus febrl has soundex in it (as well as several modified versions of
it) among other things. Looks like this is what Im looking for.
Thanks!
Astan
Dec 13 '07 #7

P: n/a
John Machin wrote:
Someone is sure to trot out the hoary old soundex ... believe me, it's
teh suxxor.

Plus febrl has soundex in it (as well as several modified versions of
it) among other things. Looks like this is what Im looking for.
Thanks!
Astan
Dec 13 '07 #8

P: n/a
On Dec 13, 4:12 pm, Astan Chee <st...@al.com.auwrote:
John Machin wrote:
Someone is sure to trot out the hoary old soundex ... believe me, it's
teh suxxor.

Plus febrl has soundex in it (as well as several modified versions of
it) among other things. Looks like this is what Im looking for.
Thanks!
Astan
febrl has soundex in there so that they could compare it with other
phonetic schemes. febrl has what you are lookin for. soundex is NOT
what you should be looking for.

Cheers,
John
Dec 13 '07 #9

This discussion thread is closed

Replies have been disabled for this discussion.