Advertisement
korenizla

project_17

Aug 1st, 2022
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. from pymystem3 import Mystem
  2. m = Mystem()
  3. from collections import Counter
  4. purpose_1 = " ".join(data['purpose'].unique())
  5. purpose_unique = data['purpose'].unique()
  6. lemmas = m.lemmatize(purpose_1)
  7. print(lemmas)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement