[Free Script] Bulk Keyword Deduplication / Similarity Check

@BlogPro

I get this warning after the similarity threshold and before the output:

C:\Users\******************\AppData\Local\Programs\Python\Python311\Lib\site-packages\sklearn\cluster\_agglomerative.py:1006: FutureWarning: Attribute `affinity` was deprecated in version 1.2 and will be removed in 1.4. Use `metric` instead
warnings.warn(

Is there anything I need to do?
Many thanks

I am sorry, I totally missed it.

I came here to post an update for the script and saw this.

The above is just a warning. I will update the script.

Do you still need help?
 
I am also having an issue with the script "Similarity-Check-Advanced-main".
At the very end, when it prompts for SIMILARITY THRESHOLD, I enter a number like 8 or 0.8, but it always fails with TYPEERROR 'affinity'
Am I doing something wrong or is the script not functioning?

script error similar.png
 
I am also having an issue with the script "Similarity-Check-Advanced-main".
At the very end, when it prompts for SIMILARITY THRESHOLD, I enter a number like 8 or 0.8, but it always fails with TYPEERROR 'affinity'
Am I doing something wrong or is the script not functioning?

View attachment 325672

Gimme a few. Fixing this.
 
I wanted to say that it was working until yesterday on my old computer but doesn't work on my new laptop that I got today.

Gimme a few. Fixing this.

your speed is scary bro
 
Update
The error has been fixed.


The issue

As part of AgglomerativeClustering in the scikit-learn package, the affinity attribute was deprecated in version 1.2 and removed entirely in 1.4 which was launched in January 2024. So everyone who installed scikit-learn after that got the error.

The resolution

The attribute affinity is now replaced by metric as is evident from the error message in older version of scikit-learn

Code:
Attribute `affinity` was deprecated in version 1.2 and will be removed in 1.4. Use `metric` instead

@ChrisChris and @GrantsKing you can get the new code from the above link.

Please let me know if there's any other issue.


 
Back
Top