Skip to content

Commit

Permalink
predict v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ansonkahng committed Dec 12, 2014
1 parent 8582c22 commit 697cc62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions predict_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ def predict_message(message):
predictions = {'bow':[],'ngram':[]}

for classifier in bow_classifiers:
predictions['bow'].append(classifier.predict(bow_message))
predictions['bow'].extend(classifier.predict(bow_message))

for classifier in ngram_classifiers:
predictions['ngram'].append(classifier.predict(ngram_message))
predictions['ngram'].extend(classifier.predict(ngram_message))
# print classifier.predict(ngram_message)

print json.dumps(predictions)
Expand Down

0 comments on commit 697cc62

Please sign in to comment.