Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Arun
committed
Sep 18, 2012
1 parent
5cdda94
commit e697581
Showing
1 changed file
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,21 @@ | ||
hpcc-spelling-corrector | ||
======================= | ||
|
||
hpcc-spelling-corrector | ||
Implements Peter Norvig's spelling corrector. This initial version computes the corrected spelling at a distance of 1. | ||
|
||
Assumes that the alphabet, incorrectly spelled word and the dictionary are all in UPPER case. | ||
|
||
Further refactoring todo: | ||
(1) Optimize the join - currently this is taking 10-20 seconds on a single node virtual machine | ||
(2) Distance of 2 | ||
(3) Handle the situation where the word passed by the user is indeed a correctly spelled word. | ||
|
||
|
||
Source Code | ||
============= | ||
ECL Source file: CorrectSpelling.ec | ||
|
||
Data files (both in the 'data' folder): | ||
|
||
(1) alphabet - Spray this file to '~spellcheck::hpcc::lexicon' | ||
(2) lexicon - Spray this file to '~spellcheck::hpcc::alphabet' |