How to use the package in a notebook
nlpretext
Installing from the main branch
To install the library from the main branch, you can run the following cell :
[ ]:
%pip install git+ssh://git@github.com/artefactory/NLPretext.git@main
Installing from a specific release
To install the library from a specific release, you can run the following cell :
[ ]:
%pip install git+ssh://git@github.com/artefactory/NLPretext.git@v1.0.5
Using the package
You can now import and run whatever is in the package :
[ ]:
from nlpretext.basic.preprocess import replace_emails
example = "I have forwarded this email to obama@whitehouse.gov"
example = replace_emails(example, replace_with="*EMAIL*")
[ ]:
print(example)