Skip to main content

This is a simple tool to correct portuguese misspells automatically.

Project description

Spell Corrector PT

Correct automatically words in Portuguese.

How to use

  • Get word list (best to use domain-specific words to lower the computational costs)
  • Train the Model (check out
  • Specify the path to save the model to reuse afterward.
  • Load the Model and correct the words (check out

How the model works (high level)

  • Preprocess the dictionary removing accentuation and transform to lowercase
  • Extract char n_grams from the dictionary
  • Create a sparse matrix from the dictionary utilizing the Bag of Words strategy
  • Create a sparse matrix from the word preprocessed
  • Compare the two sparse matrices by cosine similarity
  • Return the most similar word

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

spell_corrector_pt-0.0.2.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distributions

spell_corrector_pt-0.0.2-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

spell_corrector_pt-0.0.2-py2.py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page