Google Colab Notebook
https://colab.research.google.com/drive/1MJgxO1YVglrX85fqwEriBHSLgeC0uJl9?usp=sharing
Saw a lot of you were having difficulty running this script locally, so created a Google Colab Notebook.
Here's how you can use it
1. Open the Google Colab of the file here - https://colab.research.google.com/drive/1MJgxO1YVglrX85fqwEriBHSLgeC0uJl9?usp=sharing
2. Make sure you're logged in to your Gmail and click the Copy to Drive button (just below the file name at the top) - if you're unable to find it, just click File >> Save a Copy in Drive
If you do it right, a new Window will open with your file's copy from your Google Drive
3. Now, in the top menu, goto Runtime and click on Run All
//
That's it - your script is now ready to take your Keyword file and remove similar keywords.
Here comes the fun part -
1. Step 1 of the file will download and install all dependencies.
2. Step 2 - this is where it will ask you to upload your keywords.csv - just click on "Choose Files" and upload.
3. Once that is done, scroll to the very bottom and watch as the script runs its magic, generates the necessary embeddings etc.
4. Once it is done - it will ask you 2 questions
1. Enter the similarity threshold (0 to 1, default: 0.8):
Think of it like a percentage. So if you enter 0.90 - you're telling the script "Remove any keyword that is 90% or more similar to the others". If you enter "0.80" - you're asking for 80% or more - so on and so forth.
2. Enter the output Excel file name (default: keywords_output.xlsx):
Whatever you want the output file name to be. You can just hit enter.
That's it you're done!
To access your done files, simply click on the "File" icon (Fourth icon resembling a directory to the very left of your screen)
And you should see keywords_output.xlsx and unique_keywords.csv there. Simply right-click and download.
Let me know if you have any questions or get stuck.