jfilter / clean-text

🧹 Python package for text cleaning
Other
953 stars 79 forks source link

Import name confusion #26

Open statisticsguru1 opened 2 years ago

statisticsguru1 commented 2 years ago

It is indicated on documentation that "This package is named clean-text and not cleantext.". there is a confusion because both clean-text and cleantext are imported using the code:

import cleantext
is there a way I can specify which of the two Intent to import??

jfilter commented 2 years ago

You need to install this package via 'pip install clean-text' or 'poetry add clean-text'.

Once you have it installed, you can import the package like this:

import clean-text

clean-text.clean()

or

import cleantext

cleantext.clean()

I write this because somebody created a package "cleantext" on pip that also exposed a .clean() method, but it works completely differently.