Research Article
SPONGY (SPam ONtoloGY): Email Classification Using Two-Level Dynamic Ontology
Algorithm 1
Global ontology filter pseudocode.
(1) // Initialize variables | (2) set training dataset to | (3) set test dataset to | (4) set normalized values to | (5) | (6) Feature (: ) ; | (7) | (8) foreach(: ) { | (9) foreach(: ) { | (10) (: ) Normalize ); | (11) } | (12) } | (13) foreach(: ) { | (14) result 4.5( ); | (15) } | (16) | (17) Ontology () Jena(RdfConversion(result)); | (18) | (19) foreach(: ) { | (20) if (Ontology ) then | (21) decision = SPAM; | (22) else then | (23) decision = LEGITIMATE; | (24) } |
|