diff options
Diffstat (limited to 'src/Chapter4/classification/bayes/WordCountPair.java')
-rw-r--r-- | src/Chapter4/classification/bayes/WordCountPair.java | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/Chapter4/classification/bayes/WordCountPair.java b/src/Chapter4/classification/bayes/WordCountPair.java deleted file mode 100644 index b96be92..0000000 --- a/src/Chapter4/classification/bayes/WordCountPair.java +++ /dev/null @@ -1,34 +0,0 @@ -package Chapter4.classification.bayes; - -public class WordCountPair implements Comparable<WordCountPair>{ - - - private String word; - private double count; - - public WordCountPair(String word, double count){ - this.word = word; - this.count = count; - } - - public int compareTo(WordCountPair arg0) { - return arg0.count - count < 0 ? -1 : 1; - } - - public String getWord() { - return word; - } - - public void setWord(String word) { - this.word = word; - } - - public double getCount() { - return count; - } - - public void setCount(int count) { - this.count = count; - } - -} |