Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfidf = TfidfVectorizer()
- data['content'] = data['content'].fillna('')
- tfidf_matrix = tfidf.fit_transform(data['content'])
- {'square': 3754,
- '01': 0,
- '02': 1,
- 'public_square': 3137,
- '04': 3,
- '05': 4,
- '06': 5,
- '07': 6,
- '08': 7,
- '03': 2,
- 'feather': 1666,
- 'straight': 3821,...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement