korenizla

project_17

Aug 2nd, 2022
190
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)
Add Comment
Please, Sign In to add comment