>> GreenByte.info By Nick Tong (quiksilv) | Supported by: TalkWebSolutions.co.uk

Yahoo Word Extraction CFC on RIAForge

Have you ever wanted to get key words from content? Say you have a product description and you want to tag the product based on keywords on it product description - well now you can.

All you do is call the termExtraction CFC and pass it your appID and content:

<cfset request.termExtractionObj = createObject("component","termExtraction") />
   
<cfset request.tags_list = request.termExtractionObj.termExtration(request.AppID,form.context) />

This then returns a list in query format of the keywords from your content! How sweet is that. I'm intending to update this blog with tagging using this component.

Automated Tagging!!

TermExtraction.cfc can be downloaded and played with from RIAForge


 
Comments
Rob Gonda's Gravatar not sure why would you use an external API when this can be achieved within CF with a simple/or-not-so-simple function. In fact, I had to write one a couple of month ago; It striped out tags, special characters, and mine also matches the words against a database of keywords and rank the page... drop me an email if you wish me to send some code.

Cheers.
# Posted By Rob Gonda | 24/10/06 00:41 | Report abusive comment
Nick Tong's Gravatar hey Rob - that would be great my email is nicktong [at] gmail dot com. As for using Yahoo, they already have the database of keywords and a good word extraction engine. You code would be good to compare against Yahoos results.
# Posted By Nick Tong | 24/10/06 10:34 | Report abusive comment
BlogCFC was created by Raymond Camden. This blog is running version 5.5.1.