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

getting lots of warnings at import #2734

Open
solegalli opened this issue May 21, 2024 · 3 comments
Open

getting lots of warnings at import #2734

solegalli opened this issue May 21, 2024 · 3 comments

Comments

@solegalli
Copy link

Hey guys!

When executing import featuretools as ft I get a lot of warnings:

2024-05-21 16:26:19,117 featuretools - WARNING    While loading primitives via "nlp_primitives" entry point, ignored primitive "DiversityScore" from "nlp_primitives.diversity_score" because a primitive with that name already exists in "premium_primitives.diversity_score"
2024-05-21 16:26:19,120 featuretools - WARNING    While loading primitives via "nlp_primitives" entry point, ignored primitive "LSA" from "nlp_primitives.lsa" because a primitive with that name already exists in "premium_primitives.lsa"
2024-05-21 16:26:19,122 featuretools - WARNING    While loading primitives via "nlp_primitives" entry point, ignored primitive "MeanCharactersPerSentence" from "nlp_primitives.mean_characters_per_sentence" because a primitive with that name already exists in "premium_primitives.mean_characters_per_sentence"
2024-05-21 16:26:19,122 featuretools - WARNING    While loading primitives via "nlp_primitives" entry point, ignored primitive "NumberOfSentences" from "nlp_primitives.number_of_sentences" because a primitive with that name already exists in "premium_primitives.number_of_sentences"
2024-05-21 16:26:19,123 featuretools - WARNING    While loading primitives via "nlp_primitives" entry point, ignored primitive "PartOfSpeechCount" from "nlp_primitives.part_of_speech_count" because a primitive with that name already exists in "premium_primitives.part_of_speech_count"
2024-05-21 16:26:19,127 featuretools - WARNING    While loading primitives via "nlp_primitives" entry point, ignored primitive "PolarityScore" from "nlp_primitives.polarity_score" because a primitive with that name already exists in "premium_primitives.polarity_score"
2024-05-21 16:26:19,129 featuretools - WARNING    While loading primitives via "nlp_primitives" entry point, ignored primitive "StopwordCount" from "nlp_primitives.stopword_count" because a primitive with that name already exists in "premium_primitives.stopword_count"

Any way to suppress this? Is this intentional?

I only installed featuretools, so I am not sure why I am seeing the nlp and premium primitives. Can it be that they were leftover from a previous installation? how can I completely remove all featuretools dependencies?

@thehomebrewnerd
Copy link
Contributor

@solegalli Those specific warnings are intentional, but not ideal. The warning is just indicating that Featuretools found a primitive definition in multiple places so the warning is present to indicate only one of the definitions will be used for generating features. This is happening because we were in the process of moving primitives between libraries, but they are currently defined in multiple places. We would like to get this cleaned up, but just haven't had the time to do so yet.

You should be able to uninstall nlp-primitvies and premium-primitives and those warning should go away. If you used pip you can simply run pip uninstall nlp-primitives premium-primitives. If you are seeing those warnings without nlp-primitives or premium-primitives` in your environment we'll have to look into that further, but that should not happen.

@thehomebrewnerd
Copy link
Contributor

Related issue: #2721 (comment)

@solegalli
Copy link
Author

Thank you!

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