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
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!')
Using the normalization function to remove accents
>>> from col_spanish import del_accent
>>> del_accent('el día sábado quiero más comida!')
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
>>> from col_spanish import del_accent
>>> del_accent('el día sábado quiero más comida!')
el dia sabado quiero mas comida!
>>> text = "el día sábado quiero más comida!"
>>> normalized_text = del_accent(text)
>>> normalized_text
el dia sabado quiero mas comida!
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
col_spanish-0.0.3.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for col_spanish-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 914aaa08a447e52d2e6a428292ab7ac8cd64844980d405973b78ceaa91e2f4d7 |
|
MD5 | 9fd4516ef9b12af43e73abab9711e2da |
|
BLAKE2b-256 | 49ae35663d32134965094bdb9e05a136f003d0e8d61f77a72f5cf3a9dc2a6a34 |