473,378 Members | 1,094 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,378 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 1746
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.