From da199a9e8b3066eee67b947f2a8daeb368f8a7ee Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 1 Apr 2015 03:02:20 +0200 Subject: Remove unused calculateChannelModelProbability Channel probability is already calculated during getCandidateWords. --- spellchecker/src/SpellCorrector.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/spellchecker/src/SpellCorrector.java b/spellchecker/src/SpellCorrector.java index 3fbd8cc..a178a44 100644 --- a/spellchecker/src/SpellCorrector.java +++ b/spellchecker/src/SpellCorrector.java @@ -28,14 +28,6 @@ public class SpellCorrector { return finalSuggestion.trim(); } - public double calculateChannelModelProbability(String suggested, String incorrect) { - /** - * CODE TO BE ADDED * - */ - - return 0.0; - } - /** * Gets all candidate words, resulting from a single insertion, deletion. * substitution or transposition. -- cgit v1.2.1