Skip to content

Instantly share code, notes, and snippets.

@foohm71
Created January 7, 2021 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foohm71/a8e537e75964dd0e876bdb78a440c12c to your computer and use it in GitHub Desktop.
Save foohm71/a8e537e75964dd0e876bdb78a440c12c to your computer and use it in GitHub Desktop.
text similarity setup
from google.colab import drive
drive.mount('/content/gdrive')
import gensim
from gensim.models import KeyedVectors
import numpy as np
import pandas as pd
import nltk
from nltk import word_tokenize
nltk.download('punkt')
from scipy.spatial.distance import cosine
pd.set_option('display.max_colwidth', -1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment