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 example-train.py)
  • Specify the path to save the model to reuse afterward.
  • Load the Model and correct the words (check out example.py)

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


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
spell_corrector_pt-0.0.2-py2.py3-none-any.whl (4.2 kB) Copy SHA256 hash SHA256 Wheel py2.py3
spell_corrector_pt-0.0.2-py3-none-any.whl (4.2 kB) Copy SHA256 hash SHA256 Wheel py3
spell_corrector_pt-0.0.2.tar.gz (3.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page