python "sounds-like" module

A

Astan Chee

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
 
K

kyosohma

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/Cookbook/Python/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
 
K

kyosohma

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
 
W

Wildemar Wildenburger

Astan said:
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
 
J

John Machin

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
 
A

Astan Chee

John said:
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
 
A

Astan Chee

John said:
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
 
A

Astan Chee

John said:
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
 
J

John Machin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top