Created
November 7, 2014 21:37
-
-
Save alexfaber2011/0ecb790b767cbd9742da to your computer and use it in GitHub Desktop.
clean c_l
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public int c_l(String word, Label label){ | |
Integer count; | |
if(label == Label.SPAM){ | |
count = spam_table.get(word); | |
} else { | |
count = ham_table(word); | |
} | |
return (count == null) ? 0 : count; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment