Skip to content

Commit

Permalink
cleaning parsed_data.corpus, reading lines
Browse files Browse the repository at this point in the history
  • Loading branch information
purohit committed Feb 19, 2012
1 parent 1897baf commit 4d511a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions classify.py
Original file line number Diff line number Diff line change
@@ -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
6 changes: 1 addition & 5 deletions data/parsed_corpus.data
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4d511a9

Please sign in to comment.