Commits

Anonymous committed 1ddeb22

initial commit

Comments (0)

Files changed (5)

+Two pragrams are written for project 1 of Knowledge Technologies:
+1. nh_spellcheck.py  (Spellcheck using NeighbourHood search)
+2. trie_spellcheck.py (Spellcheck using trie data structure)
+
+These programs take two arguments: the file to be spellchecked and the dictionary file.
+
+Example:
+If the file to be checked is "enron-skilling.txt" and the dictionary is "words.txt", 
+then you can run the first program this way:
+$ python nh_spellcheck.py eron-skilling.txt words.txt
+
+Similarly, you can run the second program like this:
+$ python trie_spellcheck.py eron-skilling.txt words.txt
+
+Remember to put the files in the same directory where the python code is, or you'd 
+need to provide the full path to the argument files.
+
+*** Note ***
+The nh_spellcheck.py takes forever to spellcheck the entire enron-skilling.txt.
+I ran it for six hours and it still didn't finish. So I cut the first 1000 lines
+of enron-skilling.txt and named it enron-skilling-part.txt. It took about 15 minutes
+to spellcheck enron-skilling-part.txt.