textformat

TextFormat is a Python library for data cleaning.


Keywords
Textformat, Data, cleaning
License
MIT
Install
pip install textformat==0.0.1

Documentation

TextFormat

TextFormat is a Python library for data cleaning.

Installation

Use the package manager pip to install textformat.

pip install textformat

or

pip install -i https://test.pypi.org/simple/ textformat

Usage

from textformat import TextFormat

t = TextFormat()

t.tUrl('ejemplo de https://github.com url') 
# return: ejemplo de  url

t.fReplace('El acento grรกfico o tilde es un signo ortogrรกfico') 
# return: El acento grafico o tilde es un signo ortografico

t.fEmoji('Some examples of emojis are ๐Ÿ˜ƒ, ๐Ÿง˜๐Ÿปโ€โ™‚๏ธ, ๐ŸŒ, ๐Ÿž, ๐Ÿš—, ๐Ÿ“ž, ๐ŸŽ‰, โ™ฅ๏ธ, ๐Ÿ†, and ๐Ÿ') 
# return: Some examples of emojis are , , , , , , , ๏ธ, , and

t.fTag('ejemplo de #pruebaTag')
# return: ejemplo de prueba tag

t.fFormat('Eejemplo 123de formato {รฑ45', 'a-z')
# return: ejemplo de formato

# t.fTweet('tweet') --> Sin # o @ al inicio
# t.format('tweet') --> Todas las funciones anteriores

License

MIT