Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import name confusion #26

Open
statisticsguru1 opened this issue Jul 21, 2022 · 1 comment
Open

Import name confusion #26

statisticsguru1 opened this issue Jul 21, 2022 · 1 comment

Comments

@statisticsguru1
Copy link

statisticsguru1 commented Jul 21, 2022

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
Copy link
Owner

jfilter commented Aug 3, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants