Fast and effective spellchecker for Russian medical texts
Project description
MedSpellChecker
Fast and effective tool for correcting spelling errors in Russian medical texts. The tool takes the raw medical text and returns the corrected text in lemmatized form.
This project is under active development and is gradually improving.
Demo
Here is an example of how to correct a spelling mistake with MedSpellChecker.
Steps for reproducing the demo:
- Clone the project
- Install all requirements
- Go to
demo
folder - Run demo Flask server
- Open demo website and enjoy!
Supported errors
MedSpellChecker supports fixing the following types of errors.
Internals
MedSpellChecker uses the SymDel algorithm to speed up the generation of correction candidates, and a fine-tuned BERT-based machine learning model to rank candidates and select the best fit.
The architecture of the MedSpellChecker tool is shown below.
This architecture allows each component to be developed almost independently and the correction process to be implemented flexibly.
- Spellchecker Manager - responsible for coordinating other components and implementing high-level logic.
- Preprocessor and PostProcessor - responsible for splitting the incoming text and assembling the result.
- Dictionary - contains a dictionary of correct words, which allows to check the correct word or not.
- Edit Distance Index - allows to optimize and speed up the calculation of the editing distance required to generate candicates for fixing an incorrect word.
- Error Model - responsible for generating candidates for fixing incorrect words.
- Language Model - based on the fine-tuned RuRoberta model, ranks candidates for fixing and selects the most suitable word for correction.
More information
This project is part of master's thesis. The current state is the result of the first year of work. More details about MedSpellCHecker you can find in the text of the term report .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for medspellchecker-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16b2b952cc6634d588bcdfa90f34d55ade78443917aaff06cb81724622aa7332 |
|
MD5 | a78bf2f49a21df5ecf06ceca2a75ecb8 |
|
BLAKE2b-256 | 4037542db2a1db190db93e7056ce76a404006ad19b714abb2c61f1470f8abeea |