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
Metadata
Release files for spell-corrector-pt 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| spell_corrector_pt-0.0.2.tar.gz | 3.0 kB | Without provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spell_corrector_pt-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
| spell_corrector_pt-0.0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 11.4 kB
Release files / spell_corrector_pt-0.0.2.tar.gz
| Download URL | spell_corrector_pt-0.0.2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbeef8a8d02da5d1364cf3e4e47321163d3d3ed6281f1d26661b91858a1963f1
|
|
BLAKE2b-256 checksum How to use checksums |
1040d7de5dba0f3acd79accf2db30d0fc48b4d9ba2d95cbd9716468caa13b07e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|
Release files / spell_corrector_pt-0.0.2-py3-none-any.whl
| Download URL | spell_corrector_pt-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
162aa2f80908c5e15d912f19aabe8736f3d00452576d30c9c99b0bfe8425b84d
|
|
BLAKE2b-256 checksum How to use checksums |
905c0cb1c349320674b45189797330e3244dbfb3d8e4eaedb56feecf08fae4f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|
Release files / spell_corrector_pt-0.0.2-py2.py3-none-any.whl
| Download URL | spell_corrector_pt-0.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8584cdc3b7daff3a687394d818cc3ddb667cc59ecd375267efcaac2b6b553c7c
|
|
BLAKE2b-256 checksum How to use checksums |
78af9ab36ac7d96a7d840d743098a977a2eb40028fd2b2971d40fa1d14c10a0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|
Security for spell-corrector-pt 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.