473,228 Members | 1,663 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,228 software developers and data experts.

python "sounds-like" module

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
8 1735
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
2
by: Luke | last post by:
Hi, I'm getting an OverflowError which doesn't make sense to me. Is this a python bug? Traceback (most recent call last): File "/home/demoau/lib/py/omniORB/__init__.py", line 717, in...
6
by: PhysicsGenius | last post by:
AAAAARRRRRRRRGGHGHGHGHGHGHGHGHGH!!!!!! I hate Macs. I have a wxPython program. It runs fine on OS X when I launch it from the Terminal ("pythonw appname.py") . The user wants to be able to...
11
by: rhat | last post by:
Hi Everyone, I've recently been reading some articles about unit-testing in Python , but I am a bit confused: where do I go to get started with this? I tried googling for "unittest" but all I've...
6
by: Steph. | last post by:
Hi ! How can I play "standard system sounds" in C# ? ( "standard system sounds" = The kind of sound you hear when you use MessageBox.Show() ) Thanks ! steph.
14
by: DataSmash | last post by:
Hi, When I import the random module at the python interpreter, it works fine: >>> import random >>> x = random.randint(1,55) >>> print x 14 >>> BUT, when I put the same code in a python...
3
by: Mark Shroyer | last post by:
I guess this sort of falls under the "shameless plug" category, but here it is: Recently I used a custom metaclass in a Python program I've been working on, and I ended up doing a sort of write-up...
92
by: ureuffyrtu955 | last post by:
Python is a good programming language, but "Python" is not a good name. First, python also means snake, Monty Python. If we search "python" in google, emule, many results are not programming...
9
by: Larry Hale | last post by:
I've heard tell of a Python binding for libmagic (file(1) *nixy command; see http://darwinsys.com/file/). Generally, has anybody built this and worked with it under Windows? The only thing I've...
13
by: Thomas Troeger | last post by:
Hi, Sorry I've posted a similar question some weeks ago, but I got no answers. I want to embed a Python application on a device with limited resources, esp. storage limitations. Is there a way...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.