dataprocess
TODO : Make better validators for pydantic classes, especially for addresses.
things to do: When we process an entry, we should directly, from the pydantic class, or any other indication, know that the thing has to have a value. If the thing is None, for some values it means the line should be discarded. For some others, it just means it should be casted in the corresponding value (like "" for a string).
Solution pour traiter un nouveau dataset Construire les nouvelles colonnes à partir des anciennes. On construit les colonnes une par une, et ensuite on vire les anciennes
Procédure: Pour chaque box OCR: Voir si il y a des ocurrences exactes de certains champs. Si c'est le cas, ça veut dire que les champs correspondent. On peut calculer la distance entre l'embedding du champ et l'embedding de la box, pour voir à quoi correspond une distance entre deux embeddings qui se correspondent vraiment. Ensuite, pour les champs pour lesquels on a pas trouvé, calculer la distance entre leurs embeddings et les embeddings des champs, voir si on trouve des distances similaires.
Faire une petite revue des distances entre strings pour comprendre un peu. On doit aussi analyser chacun des numéros (telephone, regex email ? Code postal, tva etc...) pour voir si il y a quelque chose à en tirer. Parce que si il y a seulement des parties de la string de l'entree qui correspond a la box, ça peut être le bon truc quand même. On va diviser les trucs ligne par ligne dans les box, mais garder un indice indiquant la ligne. Sur les boxes avec une ligne cet indice sera 1. C'est normal. Ça permet d'indiquer de façon soft la position des éléments dans une box.
To change the interpreter:
Cmd+Shift+P -> /anaconda3/bin/python
Metadata
Release files for cleankit 0.0.5
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 | Actions |
|---|---|---|---|---|
| cleankit-0.0.5.tar.gz | 10.0 kB | Without provenance | Details for cleankit-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cleankit-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for cleankit-0.0.5-py3-none-any.whl |
Total release size: 18.6 kB
Release files / cleankit-0.0.5.tar.gz
| Download URL | cleankit-0.0.5.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b043ad14b86d03b92adae73ee256d8e9b62fcb2d342364e98a825c402dc2899b
|
|
BLAKE2b-256 checksum How to use checksums |
ed9ebd9eb16a40856b6b32756e06093fd1d6be6949106ddf98fd44d9ff9d8a4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|
Release files / cleankit-0.0.5-py3-none-any.whl
| Download URL | cleankit-0.0.5-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91e0c4a485522e8c1ad47ca3c50aea2cecdaf54820ab4dc5e98446c49b452079
|
|
BLAKE2b-256 checksum How to use checksums |
b0f96625b04de18e2298b8a774e1bfe891348ea416e05fd7dc7a184a9cb2dbe6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|
Security for cleankit 0.0.5
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.