diff --git a/classify.py b/classify.py new file mode 100644 index 0000000..123f78b --- /dev/null +++ b/classify.py @@ -0,0 +1,5 @@ +from multibayes.multibayes import MultinomialBayes +with open("data/parsed_corpus.data", "r") as f: + for line in f: + example, country = line.split("\t") + print example, country diff --git a/data/parsed_corpus.data b/data/parsed_corpus.data index 5807fed..09864ed 100644 --- a/data/parsed_corpus.data +++ b/data/parsed_corpus.data @@ -2171,8 +2171,6 @@ If al Indians start studying, al get gud marks. bt jobs r limited more unemploym A raindrop may look too small,but somewhere a thirsty flower awaits its fall. An sms seems too small,but a sending heart always remembers U a lot. Gud afternun India This is a great,great,great nice sms: My lovr @amp; my Bst Frnd r in sinking boat... Bt i can save only one's lif. . Do U knw whm i save? I save my LVR @amp; I wil die wit my FRIEND... India Why do you ask princess? United States - - United States Tuesday. I United States D United States I United States @@ -4649,8 +4647,6 @@ Ujhhhhhhh computer shipped out with address to sandiago and parantella lane. Wtf Yo so when is sushi United States Ugh my leg hurts. Musta overdid it on mon. United States Nah dub but je still buff United States - - United States Just got outta class gonna go gym. United States Sup cd butt United States Those were my exact intentions United States @@ -28344,7 +28340,7 @@ Negro.. African blackies. Yeah not gonna get any better. Singapore Girl. Sitting around doing nothing lor. Singapore Not hot of cus... Since when are blackies hot.. Neh gonna run out of batt but not yet. Havent taken my htc chacha for repair yet. Sian. Singapore No have lor. It has some problems that's why I stopped using it. Wanna get it repaired then I can change for convenience sake. Singapore -Yeah exactly. It's a simple problem that 's hard to explain in words:)) Singapore +Yeah exactly. It's a simple problem that's hard to explain in words:)) Singapore Yeah you have to see it to know;)) whachudoin? Singapore Yeah just like my body. Yeah fake smiley faces :)) Singapore Very little hair :)) Singapore