[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

mapping problem

shore.cloud@gmail.com

2/16/2008 9:36:00 AM

I've now crawled the meta infor,but with multi name all means the same
thing,
such as MS,microsoft,microsoft corporation all means the same thing,
how can I mapping words like this to the same thing?
5 Answers

Steve Holden

2/16/2008 10:18:00 AM

0

Mr Shore wrote:
> I've now crawled the meta infor,but with multi name all means the same
> thing,
> such as MS,microsoft,microsoft corporation all means the same thing,
> how can I mapping words like this to the same thing?

http://docs.python.org/lib/typesma...

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.hold...

Steven D'Aprano

2/16/2008 10:35:00 AM

0

On Sat, 16 Feb 2008 01:35:32 -0800, Mr Shore wrote:

> I've now crawled the meta infor,but with multi name all means the same
> thing,
> such as MS,microsoft,microsoft corporation all means the same thing, how
> can I mapping words like this to the same thing?

The same way you would map anything: use a dict.

You know, sometimes I'm astounded by the ability of the human brain to
find semantic meaning in what is grammatically and syntactically
gibberish. Most of the words are English, but putting them all together
makes no sense. And yet, by interpolating between key words, I can guess
that the poster wants something like this:

mapping = {"MS": "Microsoft", "Microsoft": "Microsoft",
"Microsoft Corporation": "Microsoft"}

If I have guessed poorly, could you please try again, more carefully? If
you're not a native English speaker, please say so and we'll make
allowances, and if you are a native English speaker with no cognitive
disabilities, you should be ashamed of wasting our time with such poor
communication.



--
Steven
who is unapologetic for being grumpy about the oxygen-thieves using the
Internet these days, and if that makes me a curmudgeon, so be it.

bruno.desthuilliers@gmail.com

2/17/2008 1:56:00 PM

0

On 16 fév, 11:35, Steven D'Aprano <st...@REMOVE-THIS-
cybersource.com.au> wrote:

(snip)

> If
> you're not a native English speaker, please say so

Actually, from looking at the OP's GoogleGroup profile, I think we can
safely assert he's not a native English speaker.

shore.cloud@gmail.com

2/24/2008 3:19:00 PM

0

yes
you guessed perfectly
I'm not a native English speaker
sorry for my poor english..
On Feb 16, 6:35 pm, Steven D'Aprano <st...@REMOVE-THIS-
cybersource.com.au> wrote:
> On Sat, 16 Feb 2008 01:35:32 -0800,MrShorewrote:
> > I've now crawled the meta infor,but with multi name all means the same
> > thing,
> > such as MS,microsoft,microsoft corporation all means the same thing, how
> > can I mapping words like this to the same thing?
>
> The same way you would map anything: use a dict.
>
> You know, sometimes I'm astounded by the ability of the human brain to
> find semantic meaning in what is grammatically and syntactically
> gibberish. Most of the words are English, but putting them all together
> makes no sense. And yet, by interpolating between key words, I can guess
> that the poster wants something like this:
>
> mapping = {"MS": "Microsoft", "Microsoft": "Microsoft",
> "Microsoft Corporation": "Microsoft"}
>
> If I have guessed poorly, could you please try again, more carefully? If
> you're not a native English speaker, please say so and we'll make
> allowances, and if you are a native English speaker with no cognitive
> disabilities, you should be ashamed of wasting our time with such poor
> communication.
>
> --
> Steven
> who is unapologetic for being grumpy about the oxygen-thieves using the
> Internet these days, and if that makes me a curmudgeon, so be it.

shore.cloud@gmail.com

2/24/2008 3:31:00 PM

0

On Feb 16, 6:35 pm, Steven D'Aprano <st...@REMOVE-THIS-
cybersource.com.au> wrote:
> On Sat, 16 Feb 2008 01:35:32 -0800,MrShorewrote:
> > I've now crawled the meta infor,but with multi name all means the same
> > thing,
> > such as MS,microsoft,microsoft corporation all means the same thing, how
> > can I mapping words like this to the same thing?
>
> The same way you would map anything: use a dict.
>
> You know, sometimes I'm astounded by the ability of the human brain to
> find semantic meaning in what is grammatically and syntactically
> gibberish. Most of the words are English, but putting them all together
> makes no sense. And yet, by interpolating between key words, I can guess
> that the poster wants something like this:
>
> mapping = {"MS": "Microsoft", "Microsoft": "Microsoft",
> "Microsoft Corporation": "Microsoft"}
>
> If I have guessed poorly, could you please try again, more carefully? If
> you're not a native English speaker, please say so and we'll make
> allowances, and if you are a native English speaker with no cognitive
> disabilities, you should be ashamed of wasting our time with such poor
> communication.
>
> --
> Steven
> who is unapologetic for being grumpy about the oxygen-thieves using the
> Internet these days, and if that makes me a curmudgeon, so be it.


in fact what I expected is a solution which can automatically do the
job
maybe something related with artificial intelligence
but seems feasible to do it manually
thx for all
and pre say sorry if my english once again caused your uncomfortable
in understanding.