spam or legit

I have to do this assignment.I am newbie, and need your help.could you guys please help me in this matter. Thanx

I have provided with a collection of sample email messages. The collection is
consisted of spam messages and Legit messages.I have also given the file keywords.txt, which contains the keywords that are characteristic
for either spam or legit messages.
I want to write a program, which should process the message
collection of the assignment and print in cout the following:
<messagecollection messages="n">
<message file="…" category="spam" features="m">
<feature id="i1" freq="fi1"> k1 </feature>
<feature id="i2" freq="fi2"> k2 </feature>
… <
feature id="im" freq="fim"> km </feature>
</message>
… <
message file="…" category="legit" features="r">
<feature id="j1" freq="fj1"> q1 </feature>
<feature id="j2" freq="fj2"> q2 </feature>
… <
feature id="jr" freq="fjr"> qr </feature>
</message>
… </messagecollection>
What kinds of errors are you getting from your program?
Thanks for replying.i just dont know how to start it.I think that its about opening a "keywords" file, and then read from legit and spam messages one by one.but i am not sure. could you please give me some startup hints.once i get started i believe i can do it. one more thing about message collection part how to print that.do i have to write it for every message.
I hope i have explained myself......thank you again
Topic archived. No new replies allowed.