Functions that help to work with text in spanish (Colombia)
Project description
col-spanish
A collection of tools to work with text write in Spanish (Colombia)
Purpose of the Package
The purpose of the package is to create a group of functions that help to work with text in spanish, to be more accurate with spanish from Colombia.
Features
-
normalization functions:
- delete punctuation marks
- delete accents
-
encrypting functions:
- set_characters:
delete duplicate characters inside the sentence. save it in the same order, as it appears in the sentence not in an aleatory order as set()
- create_dictionary:
Recieves two lists and create a dictionary where one is the key and the other one is the value.
- generate_pass:
This function create a safe encrypted version of your data.
- set_characters:
Geting Started
The package can be found in Pypi, hence you can install it using pip
pip install col_spanish
Usage
Using the normalization function to remove punctuation marks
>>> from col_spanish import del_punctuation
>>> del_punctuation('Hola, ¿cómo estas? ¡bien!')
>>>
Examples
>>> from col_spanish import del_punctuation
>>> del_punctuation('Hola, ¿cómo estas? ¡bien!')
Hola cómo estas bien
>>> text = "Hola, ¿cómo estas? ¡bien!"
>>> normalized_text = del_punctuation(text)
>>> normalized_text
Hola cómo estas bien
Contribution
Contributions are welcolme. If you notice a bug let us know, thanks!
Author
- Main maintainer: Sergio A. Sosa Bautista (@sergioasb8)
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
File details
Details for the file col_spanish-0.0.4.tar.gz
.
File metadata
- Download URL: col_spanish-0.0.4.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 989ebf39e430411f560ae4e11e07ab62b6501537da5f04d22fdd7ba56ebb8a3e |
|
MD5 | 41393a790900e5e9147e5e12b8aa6347 |
|
BLAKE2b-256 | ed58167d00d1793973761d6c7ff79f7feba251173b414e1da26a598b7b282925 |
File details
Details for the file col_spanish-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: col_spanish-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3875380d8063bf4a3f41f1f0abd3156b220e4f4b9a98e4ecebc61def62f5166 |
|
MD5 | ebe7a3e6d6e13e7a09f63c4d553d852c |
|
BLAKE2b-256 | 84c3046eab43a40fdc2278413bb221472a0928b99826aebbd4f5bf7e21e61da2 |