https://github.com/rajkumargara/textcorrectiontool
https://github.com/rajkumargara/textcorrectiontool
dictionary word-correction
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rajkumargara/textcorrectiontool
- Owner: RajkumarGara
- Created: 2023-03-19T13:03:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-19T13:14:21.000Z (about 2 years ago)
- Last Synced: 2025-01-13T23:35:02.834Z (5 months ago)
- Topics: dictionary, word-correction
- Language: Python
- Homepage:
- Size: 161 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TextCorrectionTool
It cleans and extracts words to form dictionary from a given text file (warofworlds file is used as dataset). Using this dictionary to spell check the input text and suggestions are given for the misspelled words using the minimum edit distance.## Execution steps
1. call process_regex(path_to_text_file); input file will be any text file (warofworlds.txt is choosen)
2. call normalize_text(path_to_text_file); input file will be the output file from step1 (regex.txt)
3. call spell_checker(input_file); input file will be the output file from step2 (dictionary.txt)