Any idea how to do this in Python?
Matthew Warren
Matthew.Warren at Digica.com
Tue Oct 17 09:33:19 EDT 2006
> On 17 Oct 2006 02:56:45 -0700, Lad <python at hope.cz> wrote:
> >
> > Dennis,
> > Thank you for your reply
> > You say:
> > >Pretend you are the computer/application/etc. How would YOU
> > > perform such a ranking?
> > That is what I do not know , how to perform such ranking.
> > Do you have any idea?
>
Maybe something like,
As you capture the input from the web form in your python app on the
server, pull out the keywords you are interested in and store those
together with logon/user information in a database.
Alongside that, store the text for all your adverts in a database along
with a list of keywords for each advert.
Then, when it comes to displaying the targeted adverts on a webpage,
grab the user keywords from the database, use them to match against
adverts that have the same keywords stored in the database, then choose
from those adverts and include the output into your webpage.
Something like that should at least ensure the relevant ad's turn up on
the page. As to a more sophisticated 'weighting' scheme, you could start
doing things like associating values with keywords, matching up which
keywords a user has used against the keywords stored against different
ads, sum up the total score for each ad, the ads with the highest scores
based on the user keywords given should be displayed first..
I havent a clue if there are 'official' ways of doing it, but that's the
kind of thing I'd start looking at, anyhoo
Matt.
To the list: apologies for appended text, I cant get to google groups
to post today :/
This email is confidential and may be privileged. If you are not the intended recipient please notify the sender immediately and delete the email from your computer.
You should not copy the email, use it for any purpose or disclose its contents to any other person.
Please note that any views or opinions presented in this email may be personal to the author and do not necessarily represent the views or opinions of Digica.
It is the responsibility of the recipient to check this email for the presence of viruses. Digica accepts no liability for any damage caused by any virus transmitted by this email.
UK: Phoenix House, Colliers Way, Nottingham, NG8 6AT UK
Reception Tel: + 44 (0) 115 977 1177
Support Centre: 0845 607 7070
Fax: + 44 (0) 115 977 7000
http://www.digica.com
SOUTH AFRICA: Building 3, Parc du Cap, Mispel Road, Bellville, 7535, South Africa
Tel: + 27 (0) 21 957 4900
Fax: + 27 (0) 21 948 3135
http://www.digica.com
More information about the Python-list
mailing list