Re: CRM114 php extension
Brad Waite <[email protected]> Tue, 03 Jan 2012 11:52:25 -0700
| Newsgroups | gmane.mail.spam.crm114 |
|---|---|
| Message-ID | <[email protected]> |
On 1/3/2012 11:25 AM, Khalid Ahsein wrote:
> I just released a php extension of the C-callable library crm114.
> I use it for a blogs platform, to detect the spam articles, since 2 weeks.
Khalid, this is *fantastic*! This has been on my TODO list ever since
the library came out (and making a crm114 library was on that list prior
to that).
> I'm open to discuss with you for any improvements or modifications.
After a quick glance, usage seems straightforward.
Based on the syntax, I assume this is a procedural library? I think an
object-oriented approach would work very well. Something like this would
be ideal:
----
$crm114 = new crm114('mydb.dat');
$spam = $crm114->addClass('spam');
$pass = $crm114->addClass('pass');
$crm114->learnText($text_clean_1, $pass);
$crm114->learnText($text_clean_2, $pass);
$crm114->learnText($text_abuse, $spam);
$classId = $crm114->classifyText($unknown_text);
----
I'd love to get involved.
-Brad Waite
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev