Skip to content

Commit

Permalink
ups...
Browse files Browse the repository at this point in the history
  • Loading branch information
ptnplanet committed Mar 11, 2012
1 parent 03f5e13 commit 789f9c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@ public void incrementFeature(T feature, K category) {
}
Integer count = features.get(feature);
if (count == null) {
features.put(feature, 0);
features.put(feature, 1);
count = features.get(feature);
}
count++;

Integer totalCount = this.totalFeatureCount.get(feature);
if (totalCount == null) {
this.totalFeatureCount.put(feature, 0);
this.totalFeatureCount.put(feature, 1);
totalCount = this.totalFeatureCount.get(feature);
}
totalCount++;
Expand All @@ -151,7 +151,7 @@ public void incrementFeature(T feature, K category) {
public void incrementCategory(K category) {
Integer count = this.totalCategoryCount.get(category);
if (count == null) {
this.totalCategoryCount.put(category, 0);
this.totalCategoryCount.put(category, 1);
count = this.totalCategoryCount.get(category);
}
count++;
Expand Down

0 comments on commit 789f9c9

Please sign in to comment.