diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-04-02 11:13:29 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2015-04-02 11:13:29 +0200 |
commit | 2957a918e369a32e51ea9c8b7b06063b5d7c09b6 (patch) | |
tree | 8811d3a2588a7a8c9132437be780a162e48830fe /spellchecker | |
parent | e87e52faadaded64e687108600055b6bad83f1e4 (diff) | |
download | assignment4-2957a918e369a32e51ea9c8b7b06063b5d7c09b6.tar.gz |
Accidentally added two times debug
Diffstat (limited to 'spellchecker')
-rw-r--r-- | spellchecker/src/SpellCorrector.java | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/spellchecker/src/SpellCorrector.java b/spellchecker/src/SpellCorrector.java index 65865b9..9028fdc 100644 --- a/spellchecker/src/SpellCorrector.java +++ b/spellchecker/src/SpellCorrector.java @@ -338,17 +338,6 @@ public class SpellCorrector { old_evaluation = evaluateWord(-1); } - if (DEBUG_SCORE) { - System.err.println(); - System.err.println("Word: " + words[index] + " -> " + word); - System.err.println("Word score: " + word_likelihoods[index] + " -> " + score); - System.err.println("Phrase score: " + evaluateWord(-1)); - for (int i = 0; i < words.length; i++) { - System.err.println(String.format("%28s %s", words[i], word_likelihoods[i])); - } - System.err.println(); - } - // save the word and its associated score assert word_likelihoods[index] < score : "The score should only get better for word " + word |