Skip to content

Instantly share code, notes, and snippets.

@srang992
Created April 16, 2022 07:57
Show Gist options
  • Save srang992/9d691f5c18823f7542b09283b35e995e to your computer and use it in GitHub Desktop.
Save srang992/9d691f5c18823f7542b09283b35e995e to your computer and use it in GitHub Desktop.
importing necessary libraries for making a simple recommendation system
import pandas as pd
import numpy as np
import re
import nltk
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
nltk.download('stopwords')
nltk.download('punkt')
from nltk import word_tokenize
from nltk.corpus import stopwords
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment