Skip to content

Instantly share code, notes, and snippets.

@rafaljanwojcik
Created November 26, 2019 18:38
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 rafaljanwojcik/9d9a942493881128629664583e66fb3a to your computer and use it in GitHub Desktop.
Save rafaljanwojcik/9d9a942493881128629664583e66fb3a to your computer and use it in GitHub Desktop.
tfidf = TfidfVectorizer(tokenizer=lambda y: y.split(), norm=None)
tfidf.fit(file_weighting.title)
features = pd.Series(tfidf.get_feature_names())
transformed = tfidf.transform(file_weighting.title)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment