Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pymystem3 import Mystem
- m = Mystem()
- from collections import Counter
- purpose_1 = " ".join(data['purpose'].unique())
- purpose_unique = data['purpose'].unique()
- lemmas = m.lemmatize(purpose_1)
- print(lemmas)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement